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
1 changed files with 1 additions and 1 deletions

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) {