mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-24 11:42:35 +01:00
Ensure banmask is a proper mask when doing nick bans
This commit is contained in:
parent
990604e085
commit
b9b0a55b4e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user