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:
|
if channel is None:
|
||||||
channel = msg.args[0]
|
channel = msg.args[0]
|
||||||
command = self.registryValue('triggers.%s' % triggerName, channel)
|
command = self.registryValue('triggers.%s' % triggerName, channel)
|
||||||
if not filter(lambda x:x!=' ', command):
|
if not list(filter(lambda x:x!=' ', command)):
|
||||||
return
|
return
|
||||||
tokens = callbacks.tokenize(command)
|
tokens = callbacks.tokenize(command)
|
||||||
if not tokens:
|
if not tokens:
|
||||||
|
|
Loading…
Reference in New Issue