3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-20 02:49:49 +01:00

ChanOpCommands: fix typo

This commit is contained in:
Pragmatic Software 2020-01-14 20:17:26 -08:00
parent 1ff7c73152
commit 0a31d17fef

View File

@ -57,7 +57,7 @@ sub on_inviting {
my ($self, $event_type, $event) = @_; my ($self, $event_type, $event) = @_;
my ($botnick, $target, $channel) = $event->{event}->args; my ($botnick, $target, $channel) = $event->{event}->args;
$self->{pbot}->{logger}->log("User $target invited to channel $channel.\n"); $self->{pbot}->{logger}->log("User $target invited to channel $channel.\n");
return 0 if not exists $self->{invites}->{lc $channel} and not exists $self->{invites}->{lc $channel}->{lc $target}; return 0 if not exists $self->{invites}->{lc $channel} or not exists $self->{invites}->{lc $channel}->{lc $target};
$event->{conn}->privmsg($self->{invites}->{lc $channel}->{lc $target}, "$target invited to $channel."); $event->{conn}->privmsg($self->{invites}->{lc $channel}->{lc $target}, "$target invited to $channel.");
delete $self->{invites}->{lc $channel}->{lc $target}; delete $self->{invites}->{lc $channel}->{lc $target};
return 1; return 1;
@ -67,7 +67,7 @@ sub on_useronchannel {
my ($self, $event_type, $event) = @_; my ($self, $event_type, $event) = @_;
my ($botnick, $target, $channel) = $event->{event}->args; my ($botnick, $target, $channel) = $event->{event}->args;
$self->{pbot}->{logger}->log("User $target is already on channel $channel.\n"); $self->{pbot}->{logger}->log("User $target is already on channel $channel.\n");
return 0 if not exists $self->{invites}->{lc $channel} and not exists $self->{invites}->{lc $channel}->{lc $target}; return 0 if not exists $self->{invites}->{lc $channel} or not exists $self->{invites}->{lc $channel}->{lc $target};
$event->{conn}->privmsg($self->{invites}->{lc $channel}->{lc $target}, "$target is already on $channel."); $event->{conn}->privmsg($self->{invites}->{lc $channel}->{lc $target}, "$target is already on $channel.");
delete $self->{invites}->{lc $channel}->{lc $target}; delete $self->{invites}->{lc $channel}->{lc $target};
return 1; return 1;