Trigger: Fix empty command detection with Python 3 (lazy filter).
parent
bce6dd4302
commit
357bcf68c3
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue