From 80eeb205ae1ac242bcd33738714730b810897591 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sat, 20 Apr 2013 09:12:29 +0000 Subject: [PATCH] Trigger: Fix hard-to-debug side effects if a trigger only contains spaces. --- Trigger/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Trigger/plugin.py b/Trigger/plugin.py index f0f1fc5..9e55f64 100644 --- a/Trigger/plugin.py +++ b/Trigger/plugin.py @@ -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: