remove debug printing from a few plugins
This commit is contained in:
parent
9eb5b236a6
commit
595a37f0e0
|
@ -8,7 +8,6 @@ from util import hook
|
||||||
|
|
||||||
def add_quote(conn, chan, nick, add_nick, msg):
|
def add_quote(conn, chan, nick, add_nick, msg):
|
||||||
now = time.time()
|
now = time.time()
|
||||||
print repr((conn, add_nick, nick, msg, time))
|
|
||||||
conn.execute('''insert or fail into quotes (chan, nick, add_nick,
|
conn.execute('''insert or fail into quotes (chan, nick, add_nick,
|
||||||
msg, time) values(?,?,?,?,?)''',
|
msg, time) values(?,?,?,?,?)''',
|
||||||
(chan, nick, add_nick, msg, now))
|
(chan, nick, add_nick, msg, now))
|
||||||
|
|
|
@ -29,7 +29,6 @@ def sieve_suite(bot, input, func, args):
|
||||||
|
|
||||||
acl = bot.config.get('acls', {}).get(func.__name__)
|
acl = bot.config.get('acls', {}).get(func.__name__)
|
||||||
if acl:
|
if acl:
|
||||||
print acl
|
|
||||||
if 'deny-except' in acl:
|
if 'deny-except' in acl:
|
||||||
allowed_channels = map(str.lower, acl['deny-except'])
|
allowed_channels = map(str.lower, acl['deny-except'])
|
||||||
if input.chan.lower() not in allowed_channels:
|
if input.chan.lower() not in allowed_channels:
|
||||||
|
|
|
@ -112,7 +112,6 @@ def twitter(inp):
|
||||||
return 'error: hashtag not found'
|
return 'error: hashtag not found'
|
||||||
id = random.choice(tweets).text
|
id = random.choice(tweets).text
|
||||||
id = id[id.rfind(':') + 1:]
|
id = id[id.rfind(':') + 1:]
|
||||||
print id
|
|
||||||
return twitter(id)
|
return twitter(id)
|
||||||
|
|
||||||
if getting_nth:
|
if getting_nth:
|
||||||
|
|
Loading…
Reference in New Issue