And now for something completely different... more fixes

This commit is contained in:
Terence Simpson 2008-11-02 00:47:25 +00:00
parent 8c583fb0eb
commit 201baa636f
3 changed files with 2 additions and 6 deletions

View File

@ -41,5 +41,3 @@ CREATE TABLE users (
To configure the plugin, create the sqlite database with above structure and set
supybot.plugins.bantracker.database to its filename. Then enable it per channel
by setting the channel variable supybot.plugins.bantracker.enabled
The btlogin function needs the FreenodeAuth plugin

View File

@ -212,7 +212,7 @@ cur.execute("SELECT channel,mask,operator,time,removal,removal_op,id FROM bans O
bans = cur.fetchall()
con.close()
def myfilter(item, regex, kick, ban, oldban, mute, oldmute, floods, operator, channel)
def myfilter(item, regex, kick, ban, oldban, mute, oldmute, floods, operator, channel):
if operator:
if not operator.lower() in item[2].lower(): return False
if channel:

View File

@ -186,10 +186,8 @@ class PackageInfo(callbacks.Plugin):
text = self.addressed(irc, msg, channel)
if not text:
return
if text[0] in str(conf.supybot.reply.whenAddressedBy.get('chars')):
if msg.args[1][0] in str(conf.supybot.reply.whenAddressedBy.get('chars')):
return
if text[0] == self.registryValue("prefixchar", channel):
text = text[1:]
if text.lower()[:4] not in ("find", "info"):
return