aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleks-Daniel Jakimenko-Aleksejev <alex.jakimenko@gmail.com>2019-04-12 18:09:15 +0300
committerGitHub <noreply@github.com>2019-04-12 18:09:15 +0300
commit3c6cebf9e394c6d51a8d2a49549ffae1427c5824 (patch)
tree1c7783d0fc72b576c2b0c33131c806450ca4cae0
parent7d060c7983a0d8e5d5092dc7d88d5f1b8a7577a7 (diff)
parent2c542acdd8410eab33cfc9b5942d515e0630ecf7 (diff)
downloadIRC::Client-3c6cebf9e394c6d51a8d2a49549ffae1427c5824.tar.gz
IRC::Client-3c6cebf9e394c6d51a8d2a49549ffae1427c5824.tar.bz2
Merge pull request #62 from taboege/irc-addressed-false-positivesHEADmaster
Fix irc-addressed false positives
-rw-r--r--lib/IRC/Client.pm64
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 ] >> /