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:
ian%hixie.ch 2004-02-18 16:08:45 +00:00
parent 36c7e69f75
commit c9f35a8e9e

View File

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