And now for something completely different... more fixes
This commit is contained in:
parent
8c583fb0eb
commit
201baa636f
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue