mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-25 04:02:37 +01:00
ChanOpCommands: fix "Can't locate object method 'mode'" error
This commit is contained in:
parent
136e220c9a
commit
4d888729e5
@ -189,9 +189,9 @@ 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);
|
||||
$context->{arguments} = "$channel $mode $list";
|
||||
$context->{arglist} = $self->{pbot}->{interpreter}->make_args($context->{arguments});
|
||||
$result = $self->cmd_mode($context);
|
||||
$mode = $flag;
|
||||
$list = '';
|
||||
$i = 0;
|
||||
@ -201,9 +201,8 @@ sub generic_mode {
|
||||
}
|
||||
|
||||
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