mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-19 10:29:30 +01:00
Remove #osdev from ignore case, fix warning numeric eq warning message
This commit is contained in:
parent
baadde5e24
commit
4d93519256
@ -91,7 +91,7 @@ sub unquiet {
|
|||||||
$self->{pbot}->chanops->unquiet_user($arguments, $from);
|
$self->{pbot}->chanops->unquiet_user($arguments, $from);
|
||||||
delete ${ $self->{pbot}->chanops->{quieted_masks} }{$arguments};
|
delete ${ $self->{pbot}->chanops->{quieted_masks} }{$arguments};
|
||||||
$self->{pbot}->conn->privmsg($arguments, "$nick has allowed you to speak again.") unless $arguments =~ /\Q$self->{pbot}->botnick\E/i;
|
$self->{pbot}->conn->privmsg($arguments, "$nick has allowed you to speak again.") unless $arguments =~ /\Q$self->{pbot}->botnick\E/i;
|
||||||
return "Done.";
|
return "/msg $nick Done.";
|
||||||
}
|
}
|
||||||
|
|
||||||
sub ban_user {
|
sub ban_user {
|
||||||
|
@ -159,7 +159,7 @@ sub check_ignore {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(($self->{ignore_flood_counter}->{$channel} > 5) or ($channel =~ /^#osdev$/i and $self->{ignore_flood_counter}->{$channel} >= 4)) {
|
if(exists $self->{ignore_flood_counter}->{$channel} and $self->{ignore_flood_counter}->{$channel} > 5) {
|
||||||
$pbot->logger->log("flood_msg exceeded! [$self->{ignore_flood_counter}->{$channel}]\n");
|
$pbot->logger->log("flood_msg exceeded! [$self->{ignore_flood_counter}->{$channel}]\n");
|
||||||
$self->{pbot}->{ignorelistcmds}->ignore_user("", "floodcontrol", "", "", ".* $channel 300");
|
$self->{pbot}->{ignorelistcmds}->ignore_user("", "floodcontrol", "", "", ".* $channel 300");
|
||||||
$self->{ignore_flood_counter}->{$channel} = 0;
|
$self->{ignore_flood_counter}->{$channel} = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user