3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-05 10:58:44 +02:00

Minor effective-level /kick derp

This commit is contained in:
Pragmatic Software 2016-11-16 19:14:00 -08:00
parent fdf529f2ae
commit 0e4f2d1447

View File

@ -724,7 +724,7 @@ sub interpreter {
return "/say $nick: I don't have the effective-level to do that."; return "/say $nick: I don't have the effective-level to do that.";
} }
my $level = 10; my $level = 10;
if ($level >= $self->{factoids}->hash->{$channel}->{$keyword}->{'effective-level'}) { if ($self->{factoids}->hash->{$channel}->{$keyword}->{'effective-level'} >= $level) {
return "/$self->{pbot}->{secretstuff}kick " . $action; return "/$self->{pbot}->{secretstuff}kick " . $action;
} else { } else {
return "/say $nick: My effective-level isn't high enough to do that."; return "/say $nick: My effective-level isn't high enough to do that.";