aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorZoffix Znet <cpan@zoffix.com>2016-01-03 12:04:41 -0500
committerZoffix Znet <cpan@zoffix.com>2016-01-03 12:04:41 -0500
commitd7f602413382660a58d14cc78e666e7f3c4b87bf (patch)
tree929939076da6943f4b328979627eaa36e78c47a3 /lib
parentd506b9126205008926d96f1fd28124b2da340081 (diff)
Fix incorrect who in irc-to-me
Diffstat (limited to 'lib')
-rw-r--r--lib/IRC/Client.pm66
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/IRC/Client.pm6 b/lib/IRC/Client.pm6
index 7cbe1ef..6eb610f 100644
--- a/lib/IRC/Client.pm6
+++ b/lib/IRC/Client.pm6
@@ -84,13 +84,13 @@ method handle-event ($e) {
and $e<params>[1] ~~ /:i ^ $nick <[,:]> \s+/
)
) {
- my $where = ($e<who><nick>, $e<who><nick>);
- $where[0] = $e<params>[0]
+ my @where = ($e<who><nick>, $e<who><nick>);
+ @where[0] = $e<params>[0]
unless ( $e<command> eq 'PRIVMSG' and $e<params>[0] eq $nick )
or ( $e<command> eq 'NOTICE' and $e<params>[0] eq $nick );
for @!plugs.grep(*.^can: 'irc-to-me') -> $p {
- my $res = $p.irc-to-me(self, $e, |$where);
+ my $res = $p.irc-to-me(self, $e, |@where);
return unless $res === IRC_NOT_HANDLED;
}
}