diff options
author | Aleks-Daniel Jakimenko-Aleksejev <alex.jakimenko@gmail.com> | 2019-04-12 18:09:15 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-12 18:09:15 +0300 |
commit | 3c6cebf9e394c6d51a8d2a49549ffae1427c5824 (patch) | |
tree | 1c7783d0fc72b576c2b0c33131c806450ca4cae0 | |
parent | 7d060c7983a0d8e5d5092dc7d88d5f1b8a7577a7 (diff) | |
parent | 2c542acdd8410eab33cfc9b5942d515e0630ecf7 (diff) |
Merge pull request #62 from taboege/irc-addressed-false-positives
Fix irc-addressed false positives
-rw-r--r-- | lib/IRC/Client.pm6 | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/IRC/Client.pm6 b/lib/IRC/Client.pm6 index f0bc7a8..bd0d861 100644 --- a/lib/IRC/Client.pm6 +++ b/lib/IRC/Client.pm6 @@ -249,9 +249,7 @@ method !handle-event ($e) { when 'irc-privmsg-channel' | 'irc-notice-channel' { my $nick = $s.current-nick; my @aliases = $s.alias; - if $e.text .= subst: - /^ [ $nick | @aliases ] <[,:]> \s* /, '' - { + if $e.text ~~ s/^ [ $nick | @aliases ] <[,:]> \s*// { take 'irc-addressed', ('irc-to-me' if $s.is-connected); } elsif $e.text ~~ / << [ $nick | @aliases ] >> / |