mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-26 12:49:24 +01:00
Rename IrcCallback.echo_message to IrcCallback.echoMessage.
For consistency with 'alwaysCall' and 'noIgnore'.
This commit is contained in:
parent
761fc2353e
commit
5dc72d2b34
@ -117,7 +117,8 @@ class IrcCallback(IrcCommandDispatcher, log.Firewalled):
|
||||
"""
|
||||
callAfter = ()
|
||||
callBefore = ()
|
||||
echo_message = False
|
||||
echoMessage = False
|
||||
echo_message = False # deprecated alias of echoMessage
|
||||
__firewalled__ = {'die': None,
|
||||
'reset': None,
|
||||
'__call__': None,
|
||||
@ -182,7 +183,7 @@ class IrcCallback(IrcCommandDispatcher, log.Firewalled):
|
||||
|
||||
def __call__(self, irc, msg):
|
||||
"""Used for handling each message."""
|
||||
if not self.echo_message \
|
||||
if not self.echoMessage and not self.echo_message \
|
||||
and msg.command in ('PRIVMSG', 'NOTICE', 'TAGMSG') \
|
||||
and ('label' in msg.server_tags
|
||||
or not msg.tagged('receivedAt')):
|
||||
|
Loading…
Reference in New Issue
Block a user