Trigger: Fix hard-to-debug side effects if a trigger only contains spaces.
parent
ecd64fffab
commit
80eeb205ae
|
@ -67,7 +67,7 @@ class Trigger(callbacks.Plugin):
|
|||
if channel is None:
|
||||
channel = msg.args[0]
|
||||
command = self.registryValue('triggers.%s' % triggerName, channel)
|
||||
if command == '':
|
||||
if not filter(lambda x:x!=' ', command):
|
||||
return
|
||||
tokens = callbacks.tokenize(command)
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue