Trigger: Fix hard-to-debug side effects if a trigger only contains spaces.

master
Valentin Lorentz 2013-04-20 09:12:29 +00:00
parent ecd64fffab
commit 80eeb205ae
1 changed files with 1 additions and 1 deletions

View File

@ -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: