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