commit 4562f0eaec77f2a6ee960ade415b2053e808b449
parent 7d5bcbc1da8b91e3d8df850abea8378bfea816b9
Author: boredpasta <boredpasta@tutanota.com>
Date: Sun, 16 Mar 2025 21:24:47 +0200
improve s/// msg when the text to replace don't exist in last msg
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mata_bot.pl b/mata_bot.pl
@@ -62,7 +62,7 @@ sub respond {
if ($subbuffer{$sender_nick} =~ s/$toreplace/$replacement/) {
msg($sock, "${sender_nick} meant to say: $subbuffer{$sender_nick}");
} else {
- msg($sock, "${sender_nick} meant to say something but idk lol ($toreplace doesn't exist in their last message)");
+ msg($sock, "${sender_nick} meant to say something but idk lol <[>~<]> (``$toreplace'' doesn't exist in their last message)");
}
return;
} elsif ($message =~ m,watch\?v=([a-zA-Z0-9-]+),) {