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
1 changed files with 2 additions and 1 deletions

View File

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