Make sure to only call commands manually when supybot.defaultIgnore is True
This commit is contained in:
@ -177,7 +177,7 @@ launchpad"""
|
||||
login = wrap(login)
|
||||
|
||||
def doPrivmsg(self, irc, msg):
|
||||
if not conf.supybot.defaultIgnore: # Only do this when defaultIgnore is set
|
||||
if not conf.supybot.defaultIgnore(): # Only do this when defaultIgnore is set
|
||||
return
|
||||
if chr(1) in msg.args[1]:
|
||||
return
|
||||
|
@ -207,6 +207,8 @@ class PackageInfo(callbacks.Plugin):
|
||||
def inFilter(self, irc, msg):
|
||||
if msg.command != "PRIVMSG":
|
||||
return msg
|
||||
if not conf.supybot.defaultIgnore():
|
||||
return msg
|
||||
text = msg.args[1]
|
||||
user = get_user(msg)
|
||||
if user:
|
||||
|
Reference in New Issue
Block a user