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

Ignore add_op_command() for channels bot is not registered or set as op

This commit is contained in:
Pragmatic Software 2014-10-28 20:34:48 +00:00
parent f640ade74e
commit c979efcfa6
2 changed files with 2 additions and 1 deletions

View File

@ -70,6 +70,7 @@ sub lose_ops {
sub add_op_command {
my ($self, $channel, $command) = @_;
return if not exists $self->{pbot}->{channels}->{channels}->hash->{$channel} or not $self->{pbot}->{channels}->{channels}->hash->{$channel}{chanop};
push @{ $self->{op_commands}->{$channel} }, $command;
}

View File

@ -13,7 +13,7 @@ use warnings;
# These are set automatically by the build/commit script
use constant {
BUILD_NAME => "PBot",
BUILD_REVISION => 795,
BUILD_REVISION => 796,
BUILD_DATE => "2014-10-28",
};