зеркало из https://github.com/mozilla/pjs.git
Oops. A long-standing error. The Admin module should be in all channels, it just shouldn't respond to commands in channels if allowChannelAdmin is 0. This fixes the join/part issue for people with allowChannelAdmin set to 0.
This commit is contained in:
Родитель
a883d46ab3
Коммит
e3696860a3
|
@ -2504,12 +2504,6 @@ sub Schedule {
|
|||
$self->SUPER::Schedule($event);
|
||||
}
|
||||
|
||||
sub InChannel {
|
||||
my $self = shift;
|
||||
my ($event) = @_;
|
||||
return $self->{'allowChannelAdmin'};
|
||||
}
|
||||
|
||||
sub Help {
|
||||
my $self = shift;
|
||||
my ($event) = @_;
|
||||
|
@ -2542,6 +2536,7 @@ sub Help {
|
|||
sub Told {
|
||||
my $self = shift;
|
||||
my ($event, $message) = @_;
|
||||
return unless $self->{allowChannelAdmin} or $event->{channel} eq '';
|
||||
if ($message =~ /^\s*auth\s+($variablepattern)\s+($variablepattern)(\s+quiet)?\s*$/osi) {
|
||||
if (not $event->{'channel'}) {
|
||||
if (defined($users{$1})) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче