mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +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,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)
|
||||
|
Loading…
Reference in New Issue
Block a user