Functioned out the PRIVMSG calls to make the code much cleaner.