IRC: fix IRC_ConnectSession not resettng password, fix IRC_SendRaw not passing cmd to irc_send_raw correctly, added a safety check to IRC_MaskMatches