Trigger: Fix empty command detection with Python 3 (lazy filter).

master
Valentin Lorentz 2013-09-25 18:31:57 +00:00
parent bce6dd4302
commit 357bcf68c3
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 not filter(lambda x:x!=' ', command):
if not list(filter(lambda x:x!=' ', command)):
return
tokens = callbacks.tokenize(command)
if not tokens: