mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-27 12:44:19 +01:00
I got rid of callbacks.IrcObjectProxy.finished.
This commit is contained in:
parent
4f49f11f20
commit
12269e0986
@ -478,11 +478,7 @@ class Infobot(callbacks.PrivmsgCommandAndRegexp):
|
|||||||
self.log.debug('Returning early from doPrivmsg, msg.repliedTo.')
|
self.log.debug('Returning early from doPrivmsg, msg.repliedTo.')
|
||||||
return
|
return
|
||||||
try:
|
try:
|
||||||
if ircmsgs.isCtcp(msg):
|
if ircmsgs.isCtcp(msg) or msg.repliedTo:
|
||||||
return
|
|
||||||
# probably not necessary, but we'll see what the debug logs show
|
|
||||||
if getattr(irc, 'finished', False):
|
|
||||||
self.log.debug('Received a finished irc object. Bailing.')
|
|
||||||
return
|
return
|
||||||
maybeAddressed = callbacks.addressed(irc.nick, msg,
|
maybeAddressed = callbacks.addressed(irc.nick, msg,
|
||||||
whenAddressedByNick=True)
|
whenAddressedByNick=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user