From b9b0a55b4e7acabb54a795d076fe82b6ee3f1a9c Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Mon, 13 Apr 2015 15:40:43 -0700 Subject: [PATCH] Ensure banmask is a proper mask when doing nick bans --- PBot/ChanOps.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/PBot/ChanOps.pm b/PBot/ChanOps.pm index 48f08421..1ec02f66 100644 --- a/PBot/ChanOps.pm +++ b/PBot/ChanOps.pm @@ -116,6 +116,7 @@ sub ban_user_timed { my $self = shift; my ($mask, $channel, $length) = @_; + $mask .= '!*@*' if $mask !~ m/[!@]/; $self->ban_user($mask, $channel); $self->{unban_timeout}->hash->{$channel}->{$mask}{timeout} = gettimeofday + $length; $self->{unban_timeout}->save;