Upgraded all the code to PircBotX