diff options
author | David Phillips <david@yeah.nah.nz> | 2020-04-04 19:34:10 +1300 |
---|---|---|
committer | David Phillips <david@yeah.nah.nz> | 2020-04-04 19:36:42 +1300 |
commit | cba83d93d8b47cc044e8d093049d23aba5d8b6ed (patch) | |
tree | 042fe5146cfef32a10c132a48292db8f29be7539 /Mock | |
parent | cdae7275d29c9c370ec7e714dd71af2a1076c0d0 (diff) | |
download | idalius-cba83d93d8b47cc044e8d093049d23aba5d8b6ed.tar.xz |
Add test plans for Thanks, Vote
Diffstat (limited to 'Mock')
-rw-r--r-- | Mock/CommandRegistry.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Mock/CommandRegistry.pm b/Mock/CommandRegistry.pm index 72c84cf..6531fd7 100644 --- a/Mock/CommandRegistry.pm +++ b/Mock/CommandRegistry.pm @@ -28,6 +28,7 @@ sub run_owned { # XXX plugins need to eventually use the ctx hash directly. Much more # readable than remembering the long chain of magic positional args each # time you write a new cmd plugin + my @cmd_args = split /\s+/, $ctx{rest} if $ctx{rest}; my @args = ( $ctx{irc}, $ctx{logger}, @@ -36,7 +37,7 @@ sub run_owned { $ctx{ided}, $ctx{rest}, $ctx{no_reenter}, - $ctx{args} + @cmd_args ); $self->{_commands}->{$owner}->{$command}->(@args); |