From b1cb9fa200cfd024e534f0ec4f1541bf15491cbb Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Fri, 16 May 2014 22:10:55 +0000 Subject: [PATCH] Reduce nick-flood limit to 3 within 30 minutes instead of within 1 hour --- PBot/IRCHandlers.pm | 2 +- PBot/VERSION.pm | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/PBot/IRCHandlers.pm b/PBot/IRCHandlers.pm index bac9d2d5..3916f225 100644 --- a/PBot/IRCHandlers.pm +++ b/PBot/IRCHandlers.pm @@ -255,7 +255,7 @@ sub on_nickchange { $self->{pbot}->{messagehistory}->{database}->devalidate_all_channels($newnick_account); $self->{pbot}->{messagehistory}->{database}->update_hostmask_data($newnick_account, { last_seen => scalar gettimeofday }); - $self->{pbot}->antiflood->check_flood("$nick!$user\@$host", $nick, $user, $host, "NICKCHANGE $newnick", 3, 60 * 60, $self->{pbot}->{messagehistory}->{MSG_NICKCHANGE}); + $self->{pbot}->antiflood->check_flood("$nick!$user\@$host", $nick, $user, $host, "NICKCHANGE $newnick", 3, 60 * 30, $self->{pbot}->{messagehistory}->{MSG_NICKCHANGE}); } sub pbot { diff --git a/PBot/VERSION.pm b/PBot/VERSION.pm index 5c6679f4..969bdf2b 100644 --- a/PBot/VERSION.pm +++ b/PBot/VERSION.pm @@ -13,8 +13,8 @@ use warnings; # These are set automatically by the build/commit script use constant { BUILD_NAME => "PBot", - BUILD_REVISION => 579, - BUILD_DATE => "2014-05-15", + BUILD_REVISION => 580, + BUILD_DATE => "2014-05-16", }; 1;