mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-02 16:09:24 +01:00
Added isCommand to the firewalled methods.
This commit is contained in:
parent
b2efbdc84c
commit
9108591b7f
@ -664,7 +664,8 @@ class ConfigIrcProxy(RichReplyMethods):
|
|||||||
class Privmsg(irclib.IrcCallback):
|
class Privmsg(irclib.IrcCallback):
|
||||||
"""Base class for all Privmsg handlers."""
|
"""Base class for all Privmsg handlers."""
|
||||||
__metaclass__ = log.MetaFirewall
|
__metaclass__ = log.MetaFirewall
|
||||||
__firewalled__ = {'invalidCommand': None} # Eventually callCommand.
|
__firewalled__ = {'isCommand': None,
|
||||||
|
'invalidCommand': None} # Eventually callCommand.
|
||||||
threaded = False
|
threaded = False
|
||||||
public = True
|
public = True
|
||||||
alwaysCall = ()
|
alwaysCall = ()
|
||||||
@ -726,10 +727,6 @@ class Privmsg(irclib.IrcCallback):
|
|||||||
if msg.command == 'PRIVMSG':
|
if msg.command == 'PRIVMSG':
|
||||||
if self.noIgnore or not ircdb.checkIgnored(msg.prefix,msg.args[0]):
|
if self.noIgnore or not ircdb.checkIgnored(msg.prefix,msg.args[0]):
|
||||||
self.__parent.__call__(irc, msg)
|
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:
|
else:
|
||||||
self.__parent.__call__(irc, msg)
|
self.__parent.__call__(irc, msg)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user