From dc0b0a4473bce81b9dfd05d2258c7770b31b37f4 Mon Sep 17 00:00:00 2001 From: ElTata <eltata@firemail.cc> Date: Mon, 3 Aug 2020 13:27:04 +0200 Subject: [PATCH] fix: private msgs does not reduce ttl anymore Fix a bug where private msgs to the bot would reduce TTL the same way public messages do. --- Irpg/Main.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Irpg/Main.pm b/Irpg/Main.pm index 9fccd84..99d77c5 100644 --- a/Irpg/Main.pm +++ b/Irpg/Main.pm @@ -580,7 +580,7 @@ sub parse { } else { Irpg::Irc::notice("You don't have access to ".uc($arg[3]).".", $usernick); } - } else { + } elsif ($msgtype eq 'pub') { # the message is not a command penalize($username,"privmsg",length("@arg[3..$#arg]")); } -- GitLab