mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-26 23:23:33 +00:00
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:
parent
36c7e69f75
commit
c9f35a8e9e
@ -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})) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user