From cba83d93d8b47cc044e8d093049d23aba5d8b6ed Mon Sep 17 00:00:00 2001 From: David Phillips Date: Sat, 4 Apr 2020 19:34:10 +1300 Subject: Add test plans for Thanks, Vote --- Mock/CommandRegistry.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Mock') 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); -- cgit v1.1