Fixed formatting and removed unused imports.

This commit is contained in:
Fletcher Boyd 2013-09-04 18:32:17 +08:00
parent fb62640ccc
commit fa97d4659c
6 changed files with 31 additions and 33 deletions

View file

@ -1,14 +1,14 @@
import re
from util import hook, text
from util import hook
from fnmatch import fnmatch
@hook.sieve
def sieve_suite(bot, input, func, kind, args):
if input.command == 'PRIVMSG' and\
input.nick.endswith('bot') and args.get('ignorebots', True):
return None
if input.command == 'PRIVMSG' and \
input.nick.endswith('bot') and args.get('ignorebots', True):
return None
if kind == "command":
if input.trigger in bot.config.get('disabled_commands', []):
@ -34,7 +34,6 @@ def sieve_suite(bot, input, func, kind, args):
if args.get('adminonly', False):
args["permissions"] = ["adminonly"]
if args.get('permissions', False):
groups = bot.config.get("permissions", [])