3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-04 18:38:47 +02:00

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

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;