Use regex search

Closes #11
This commit is contained in:
Czar 2024-02-16 01:56:08 +01:00
commit c1cf772171

View file

@ -218,7 +218,7 @@ class AngelBot(ClientXMPP):
"""Process sed command."""
try:
text = msg["body"]
if not sed_cmd.match(text):
if not sed_cmd.search(text):
self.messages[sender]["messages"].add(text)
return
sed_args = sed_parse.split(text)