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