diff --git a/core/irc.py b/core/irc.py index 8533cc5..76a8b36 100644 --- a/core/irc.py +++ b/core/irc.py @@ -1,4 +1,3 @@ -import sys import re import socket import time diff --git a/core/reload.py b/core/reload.py index e0d84ef..d6910b2 100644 --- a/core/reload.py +++ b/core/reload.py @@ -1,10 +1,8 @@ import collections import glob import os -import Queue import re import sys -import thread import traceback diff --git a/plugins/gcalc.py b/plugins/gcalc.py index 1193a37..479a1bb 100644 --- a/plugins/gcalc.py +++ b/plugins/gcalc.py @@ -1,8 +1,6 @@ import urllib2 import re -from lxml import html - from util import hook diff --git a/plugins/mtg.py b/plugins/mtg.py index efdb8c9..1e21798 100644 --- a/plugins/mtg.py +++ b/plugins/mtg.py @@ -1,7 +1,6 @@ from lxml import html import re import urllib2 -import sys from util import hook diff --git a/plugins/sieve.py b/plugins/sieve.py index bff4990..cee8696 100644 --- a/plugins/sieve.py +++ b/plugins/sieve.py @@ -1,16 +1,8 @@ -import os -import re - from util import hook @hook.sieve def sieve_suite(bot, input, func, kind, args): - events = args.get('events', ['PRIVMSG']) - - if input.command not in events and '*' not in events: - return None - if input.command == 'PRIVMSG' and input.nick.lower()[-3:] == 'bot' \ and args.get('ignorebots', True): return None @@ -25,8 +17,5 @@ def sieve_suite(bot, input, func, kind, args): denied_channels = map(unicode.lower, acl['allow-except']) if input.chan.lower() in denied_channels: return None - -# input.inp_unstripped = ' '.join(input.re.groups()) -# input.inp = input.inp_unstripped.strip() - + return input diff --git a/plugins/util/hook.py b/plugins/util/hook.py index ddd23e1..90b3c2f 100644 --- a/plugins/util/hook.py +++ b/plugins/util/hook.py @@ -1,5 +1,4 @@ import inspect -import traceback def _hook_add(func, add, name=''): diff --git a/plugins/util/timesince.py b/plugins/util/timesince.py index 846d2a7..a3cea46 100644 --- a/plugins/util/timesince.py +++ b/plugins/util/timesince.py @@ -27,7 +27,6 @@ #SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. import datetime -import time def timesince(d, now=None):