mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-26 20:59:27 +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 = ()
|
callAfter = ()
|
||||||
callBefore = ()
|
callBefore = ()
|
||||||
echo_message = False
|
echoMessage = False
|
||||||
|
echo_message = False # deprecated alias of echoMessage
|
||||||
__firewalled__ = {'die': None,
|
__firewalled__ = {'die': None,
|
||||||
'reset': None,
|
'reset': None,
|
||||||
'__call__': None,
|
'__call__': None,
|
||||||
@ -182,7 +183,7 @@ class IrcCallback(IrcCommandDispatcher, log.Firewalled):
|
|||||||
|
|
||||||
def __call__(self, irc, msg):
|
def __call__(self, irc, msg):
|
||||||
"""Used for handling each message."""
|
"""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 msg.command in ('PRIVMSG', 'NOTICE', 'TAGMSG') \
|
||||||
and ('label' in msg.server_tags
|
and ('label' in msg.server_tags
|
||||||
or not msg.tagged('receivedAt')):
|
or not msg.tagged('receivedAt')):
|
||||||
|
Loading…
Reference in New Issue
Block a user