mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-26 20:52:37 +01:00
ChanOps: anchor $botnick test in kick section of perform_op_commands
This commit is contained in:
parent
54e75d934b
commit
00052452b6
@ -124,7 +124,7 @@ sub perform_op_commands {
|
||||
$self->{pbot}->{conn}->mode($1, $2);
|
||||
$self->{pbot}->{logger}->log(" executing mode [$1] [$2]\n");
|
||||
} elsif ($command =~ /^kick (.*?) (.*?) (.*)/i) {
|
||||
$self->{pbot}->{conn}->kick($1, $2, $3) unless $1 =~ /\Q$botnick\E/i;
|
||||
$self->{pbot}->{conn}->kick($1, $2, $3) unless $1 =~ /^\Q$botnick\E$/i;
|
||||
$self->{pbot}->{logger}->log(" executing kick on $1 $2 $3\n");
|
||||
} elsif ($command =~ /^sl (.*)/i) {
|
||||
$self->{pbot}->{conn}->sl($1);
|
||||
|
Loading…
Reference in New Issue
Block a user