Only tag the ircmsg if we actually get one back from irc.reply. We don't in situations like: @topic fit [tiny $url]

This commit is contained in:
James Vega 2007-06-14 12:43:09 +00:00
parent 5020391a7c
commit 99696986f6

View File

@ -197,6 +197,7 @@ class ShrinkUrl(callbacks.PluginRegexp):
tinyurl = self._getTinyUrl(url)
if tinyurl is not None:
m = irc.reply(tinyurl)
if m is not None:
m.tag('shrunken')
else:
s = 'Could not parse the TinyURL.com results page.'