Make sure to only call commands manually when supybot.defaultIgnore is True

This commit is contained in:
Terence Simpson 2009-12-03 23:23:09 +00:00
parent ecefe1de50
commit ac6fd47a8b
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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: