irc: fix type of value stored in hashtable when joining a channel (closes #211)

(cherry picked from commit f91f57f12c2266db28b9e81254ce494c07e8db35)