renderer2: fixed compilation on OS X
irc: fixed crash in loop and added handler for ERR_INVALIDUSERNAME, refs #494
irc: nickname cannot begin with a special char, fixes #494