From d506b9126205008926d96f1fd28124b2da340081 Mon Sep 17 00:00:00 2001 From: Zoffix Znet Date: Sun, 3 Jan 2016 11:49:28 -0500 Subject: Use our variable instead of a private one --- lib/IRC/Client.pm6 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/IRC/Client.pm6 b/lib/IRC/Client.pm6 index bcc1c6e..7cbe1ef 100644 --- a/lib/IRC/Client.pm6 +++ b/lib/IRC/Client.pm6 @@ -78,16 +78,16 @@ method handle-event ($e) { } my $nick = $!nick; - if ( ( $e eq 'PRIVMSG' and $e[0] eq $!nick ) - or ( $e eq 'NOTICE' and $e[0] eq $!nick ) + if ( ( $e eq 'PRIVMSG' and $e[0] eq $nick ) + or ( $e eq 'NOTICE' and $e[0] eq $nick ) or ( $e eq 'PRIVMSG' and $e[1] ~~ /:i ^ $nick <[,:]> \s+/ ) ) { my $where = ($e, $e); $where[0] = $e[0] - unless ( $e eq 'PRIVMSG' and $e[0] eq $!nick ) - or ( $e eq 'NOTICE' and $e[0] eq $!nick ); + unless ( $e eq 'PRIVMSG' and $e[0] eq $nick ) + or ( $e eq 'NOTICE' and $e[0] eq $nick ); for @!plugs.grep(*.^can: 'irc-to-me') -> $p { my $res = $p.irc-to-me(self, $e, |$where); -- cgit v1.1