add type IRC_MSG, type IRC_MSG_PARA, optimize some function.