Imported and adapated bans class from IRCCommand.