Don't bother snarfing URLs from non-Action CTCP messages.

This commit is contained in:
Jeremy Fincher 2010-01-28 06:35:53 -06:00
parent 9e15d03375
commit 3282e3407e

View File

@ -36,6 +36,7 @@ import supybot.conf as conf
import supybot.utils as utils
from supybot.commands import *
import supybot.plugins as plugins
import supybot.ircmsgs as ircmsgs
import supybot.ircutils as ircutils
import supybot.callbacks as callbacks
@ -79,6 +80,8 @@ class Web(callbacks.PluginRegexp):
channel = msg.args[0]
if not irc.isChannel(channel):
return
if ircmsgs.isCtcp(msg) and not ircmsgs.isAction(msg):
return
if callbacks.addressed(irc.nick, msg):
return
if self.registryValue('titleSnarfer', channel):