finished replacing irc.send by smaller function