commit 23fce65c5b46033fb91bcba9a57a96403b03078c
parent e3f5717173e9ae8510606ccb208712894ff8c6c7
Author: boredpasta <boredpasta@tutanota.com>
Date: Tue, 18 Mar 2025 12:07:32 +0200
make (:|,) optional for when someone is mentioning bot
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mata_bot.pl b/mata_bot.pl
@@ -42,7 +42,7 @@ sub msg {
sub respond {
my ($sock, $sender_nick, $message) = @_;
# if no triggers found, check for mentions
- if ($message =~ /^${NICK}(:|,) *[^\000\r\n\ ]+/) {
+ if ($message =~ /^${NICK}(:|,)? *[^\000\r\n\ ]+/) {
# we got a command
if ($sender_nick =~ /^${MOTHER}$/) {
msg($sock, "Done, mother! <[^_^]>");