mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-11 12:32:37 +01:00
Ensure lowercased parameters
This commit is contained in:
parent
ff7141a3d6
commit
2792a0cb0b
@ -155,6 +155,10 @@ sub track_mode {
|
||||
my $self = shift;
|
||||
my ($source, $mode, $target, $channel) = @_;
|
||||
|
||||
$mode = lc $mode;
|
||||
$target = lc $target;
|
||||
$channel = lc $channel;
|
||||
|
||||
if($mode eq "+b" or $mode eq "+q") {
|
||||
$self->{pbot}->{logger}->log("ban-tracker: $target " . ($mode eq '+b' ? 'banned' : 'quieted') . " by $source in $channel.\n");
|
||||
$self->{banlist}->{$channel}->{$mode}->{$target} = [ $source, gettimeofday ];
|
||||
|
Loading…
Reference in New Issue
Block a user