From da5fd46bb141d7fb64509c27dfbcaae97811cfd0 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Tue, 14 Sep 2004 15:09:01 +0000 Subject: [PATCH] Use the new msg.repliedTo tag. --- plugins/Infobot.py | 6 +++--- src/privmsgs.py | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/plugins/Infobot.py b/plugins/Infobot.py index e5df40300..4b6d45121 100755 --- a/plugins/Infobot.py +++ b/plugins/Infobot.py @@ -474,6 +474,9 @@ class Infobot(callbacks.PrivmsgCommandAndRegexp): _forceRe = re.compile(r'^no[,: -]+', re.I) _karmaRe = re.compile(r'^(?:\S+|\(.+\))(?:\+\+|--)(?:\s+)?$') def doPrivmsg(self, irc, msg): + if msg.repliedTo: + self.log.debug('Returning early from doPrivmsg, msg.repliedTo.') + return try: if ircmsgs.isCtcp(msg): return @@ -595,9 +598,6 @@ class Infobot(callbacks.PrivmsgCommandAndRegexp): # Does the dunno'ing for us itself. self.factoid(key, prepend=random.choice(starts)) - def invalidCommand(self, irc, msg, tokens): - irc.finished = True - def doFactoid(self, irc, msg, match): r"^(.+?)\s+(?