mata_bot

some cheeky bot for #unix_surrealism
git clone https://git.pastanoggin.com/mata_bot.git
Log | Files | Refs | README | LICENSE

commit 637be52e7d7e73817d5daae8213db28e08a1263d
parent 4f491dc8ed86f2039773c076fc52928121e18b97
Author: boredpasta <boredpasta@tutanota.com>
Date:   Mon, 17 Mar 2025 12:45:01 +0200

fix s/// subbing without the s part starting on it's own WORD

Diffstat:
Mmata_bot.pl | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mata_bot.pl b/mata_bot.pl @@ -55,7 +55,7 @@ sub respond { } else { msg($sock, "${sender_nick}: Bleep Bloop? <[._.]>"); } - } elsif ($subbuffer{$sender_nick} && $message =~ m,s/([^\000\r\n/]*)/([^\000\r\n/]*)/?,) { + } elsif ($subbuffer{$sender_nick} && $message =~ m,\b{wb}s/([^\000\r\n/]*)/([^\000\r\n/]*)/?,) { # chat s/// my $toreplace = $1; my $replacement = $2;