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