aboutsummaryrefslogtreecommitdiff
path: root/Mock
diff options
context:
space:
mode:
authorDavid Phillips <david@yeah.nah.nz>2020-04-04 19:34:10 +1300
committerDavid Phillips <david@yeah.nah.nz>2020-04-04 19:36:42 +1300
commitcba83d93d8b47cc044e8d093049d23aba5d8b6ed (patch)
tree042fe5146cfef32a10c132a48292db8f29be7539 /Mock
parentcdae7275d29c9c370ec7e714dd71af2a1076c0d0 (diff)
downloadidalius-cba83d93d8b47cc044e8d093049d23aba5d8b6ed.tar.xz
Add test plans for Thanks, Vote
Diffstat (limited to 'Mock')
-rw-r--r--Mock/CommandRegistry.pm3
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);