Added isCommand to the firewalled methods.

This commit is contained in:
Jeremy Fincher 2004-02-07 11:48:37 +00:00
parent b2efbdc84c
commit 9108591b7f

View File

@ -664,7 +664,8 @@ class ConfigIrcProxy(RichReplyMethods):
class Privmsg(irclib.IrcCallback):
"""Base class for all Privmsg handlers."""
__metaclass__ = log.MetaFirewall
__firewalled__ = {'invalidCommand': None} # Eventually callCommand.
__firewalled__ = {'isCommand': None,
'invalidCommand': None} # Eventually callCommand.
threaded = False
public = True
alwaysCall = ()
@ -726,10 +727,6 @@ class Privmsg(irclib.IrcCallback):
if msg.command == 'PRIVMSG':
if self.noIgnore or not ircdb.checkIgnored(msg.prefix,msg.args[0]):
self.__parent.__call__(irc, msg)
else:
# We want this to be under logging.DEBUG: it's not very useful,
# even for debugging things :)
self.log.log(0, 'Ignoring %s', msg.prefix)
else:
self.__parent.__call__(irc, msg)