mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
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:
parent
5020391a7c
commit
99696986f6
@ -197,6 +197,7 @@ class ShrinkUrl(callbacks.PluginRegexp):
|
|||||||
tinyurl = self._getTinyUrl(url)
|
tinyurl = self._getTinyUrl(url)
|
||||||
if tinyurl is not None:
|
if tinyurl is not None:
|
||||||
m = irc.reply(tinyurl)
|
m = irc.reply(tinyurl)
|
||||||
|
if m is not None:
|
||||||
m.tag('shrunken')
|
m.tag('shrunken')
|
||||||
else:
|
else:
|
||||||
s = 'Could not parse the TinyURL.com results page.'
|
s = 'Could not parse the TinyURL.com results page.'
|
||||||
|
Loading…
Reference in New Issue
Block a user