from_ircmessage generic function