fixed occasional garbage in chat

fixed occasional garbage in chat  when first connecting to irc servers
or a channel