Rename IrcCallback.echo_message to IrcCallback.echoMessage.

For consistency with 'alwaysCall' and 'noIgnore'.
This commit is contained in:
Valentin Lorentz 2020-08-23 16:27:22 +02:00
parent 761fc2353e
commit 5dc72d2b34

View File

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