mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-24 11:42:35 +01:00
ChanOpCommands: fix "Can't locate object method 'mode'" error
This commit is contained in:
parent
136e220c9a
commit
4d888729e5
@ -189,21 +189,20 @@ sub generic_mode {
|
||||
$i++;
|
||||
|
||||
if ($i >= $max_modes) {
|
||||
my $args = "$channel $mode $list";
|
||||
$context->{arglist} = $self->{pbot}->{interpreter}->make_args($args);
|
||||
$result = $self->mode($channel, $context->{nick}, $context->{user}, $context->{host}, $args, $context);
|
||||
$mode = $flag;
|
||||
$list = '';
|
||||
$i = 0;
|
||||
$context->{arguments} = "$channel $mode $list";
|
||||
$context->{arglist} = $self->{pbot}->{interpreter}->make_args($context->{arguments});
|
||||
$result = $self->cmd_mode($context);
|
||||
$mode = $flag;
|
||||
$list = '';
|
||||
$i = 0;
|
||||
last if $result ne '' and $result ne 'Done.';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($i) {
|
||||
my $args = "$channel $mode $list";
|
||||
$context->{arguments} = $args;
|
||||
$context->{arglist} = $self->{pbot}->{interpreter}->make_args($args);
|
||||
$context->{arguments} = "$channel $mode $list";
|
||||
$context->{arglist} = $self->{pbot}->{interpreter}->make_args($context->{arguments});
|
||||
$result = $self->cmd_mode($context);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user