3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-24 03:33:06 +01:00

Factoid doesn't have effective-level, not the bot itself...

This commit is contained in:
Pragmatic Software 2017-08-03 13:28:52 -07:00
parent c9c39673d8
commit 9864ce09ae

View File

@ -726,7 +726,7 @@ sub interpreter {
return $action;
} elsif ($action =~ s/^\/kick\s+//) {
if (not exists $self->{factoids}->hash->{$channel}->{$keyword}->{'effective-level'}) {
return "/say $nick: I don't have the effective-level to do that.";
return "/say $nick: $keyword doesn't have the effective-level to do that.";
}
my $level = 10;
if ($self->{factoids}->hash->{$channel}->{$keyword}->{'effective-level'} >= $level) {