unknown_command: fix message handling
This commit is contained in:
parent
bd0482023b
commit
c21a1bb7b1
|
@ -36,8 +36,7 @@ class UnknownCommandPlugin(Plugin):
|
||||||
return False
|
return False
|
||||||
words = message.split()
|
words = message.split()
|
||||||
if len(words) == 0 or words[-1] != self.config["command_suffix"]:
|
if len(words) == 0 or words[-1] != self.config["command_suffix"]:
|
||||||
self.signal_failure(event.target)
|
return False
|
||||||
return True
|
|
||||||
|
|
||||||
query = " ".join(words[:-1])
|
query = " ".join(words[:-1])
|
||||||
self.process_query(query, event.target)
|
self.process_query(query, event.target)
|
||||||
|
|
Loading…
Reference in a new issue