mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-26 20:59:27 +01:00
ShrinkUrl: Preven crash for commands with no arguments.
This commit is contained in:
parent
567def69c3
commit
c65762544c
@ -124,8 +124,10 @@ class ShrinkUrl(callbacks.PluginRegexp):
|
||||
irc.queueMsg(newMsg)
|
||||
|
||||
def outFilter(self, irc, msg):
|
||||
if msg.command != 'PRIVMSG':
|
||||
return
|
||||
channel = msg.args[0]
|
||||
if msg.command == 'PRIVMSG' and irc.isChannel(channel):
|
||||
if irc.isChannel(channel):
|
||||
if not msg.shrunken:
|
||||
if self.registryValue('outFilter', channel):
|
||||
if utils.web.httpUrlRe.search(msg.args[1]):
|
||||
|
Loading…
Reference in New Issue
Block a user