syntax/refactor fixes to irc platform