From d2da9fcd250533bee5df17bd182648a8cea0d7b0 Mon Sep 17 00:00:00 2001 From: Zoffix Znet Date: Sun, 6 Dec 2015 18:07:19 -0500 Subject: Prerelease --- lib/IRC/Grammar/Actions.pm6 | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'lib/IRC/Grammar/Actions.pm6') diff --git a/lib/IRC/Grammar/Actions.pm6 b/lib/IRC/Grammar/Actions.pm6 index 7093b99..74a8f11 100644 --- a/lib/IRC/Grammar/Actions.pm6 +++ b/lib/IRC/Grammar/Actions.pm6 @@ -3,12 +3,11 @@ method TOP ($/) { $/.make: $>>.made } method message ($/) { my $pref = $/; my %args = command => ~$/; - if ( $pref.defined ) { - %args = ~$pref; - } - else { - %args = $prefยป.Str; + for qw/nick user host/ { + $pref{$_}.defined or next; + %args{$_} = $pref{$_}.Str; } + %args = ~$pref if $pref.defined; my $p = $/; loop { -- cgit v1.1