Ensure banmask is a proper mask when doing nick bans

This commit is contained in:
Pragmatic Software 2015-04-13 15:40:43 -07:00
parent 990604e085
commit b9b0a55b4e
1 changed files with 1 additions and 0 deletions

View File

@ -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;