mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-19 10:29:30 +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}->{conn}->mode($1, $2);
|
||||||
$self->{pbot}->{logger}->log(" executing mode [$1] [$2]\n");
|
$self->{pbot}->{logger}->log(" executing mode [$1] [$2]\n");
|
||||||
} elsif ($command =~ /^kick (.*?) (.*?) (.*)/i) {
|
} 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");
|
$self->{pbot}->{logger}->log(" executing kick on $1 $2 $3\n");
|
||||||
} elsif ($command =~ /^sl (.*)/i) {
|
} elsif ($command =~ /^sl (.*)/i) {
|
||||||
$self->{pbot}->{conn}->sl($1);
|
$self->{pbot}->{conn}->sl($1);
|
||||||
|
Loading…
Reference in New Issue
Block a user