unknown_command: fix message handling

This commit is contained in:
dece 2020-11-09 15:50:26 +01:00
parent bd0482023b
commit c21a1bb7b1

View file

@ -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)