mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-24 03:33:06 +01:00
Ensure params to track_mode are defined
This commit is contained in:
parent
71ae499dfa
commit
9ec2622183
@ -277,8 +277,8 @@ sub track_mode {
|
||||
my ($source, $channel, $mode, $mask) = @_;
|
||||
|
||||
my ($nick) = $source =~ /(^[^!]+)/;
|
||||
$channel = lc $channel;
|
||||
$mask = lc $mask;
|
||||
$channel = defined $channel ? lc $channel : '';
|
||||
$mask = defined $mask ? lc $mask : '';
|
||||
|
||||
my $mute_char = $self->{pbot}->{registry}->get_value('banlist', 'mute_mode_char');
|
||||
|
||||
|
@ -35,8 +35,8 @@ sub initialize {
|
||||
sub track_mode {
|
||||
my ($self, $source, $channel, $mode, $target) = @_;
|
||||
|
||||
$channel = lc $channel;
|
||||
$target = lc $target;
|
||||
$channel = defined $channel ? lc $channel : '';
|
||||
$target = defined $target ? lc $target : '';
|
||||
|
||||
if ($target eq lc $self->{pbot}->{registry}->get_value('irc', 'botnick')) {
|
||||
if ($mode eq '+o') {
|
||||
|
Loading…
Reference in New Issue
Block a user