Fix possible buffer overflow in irc channel name parsing.

If enable sanity check (--enable-sanity) and enable irc bot, map server will crash on start.
Here is fix.