aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPedro Cunha2015-06-21 15:56:24 +0100
committerPedro Cunha2015-06-21 15:56:24 +0100
commit9cb36de5016485949e7d83f462ccab553c0f5616 (patch)
tree2cb701418c963ad835fe89ed93e03d3233760233
parentb248041628fab7786c76870675cc70527c1a8459 (diff)
downloadirssi-nohilight-9cb36de5016485949e7d83f462ccab553c0f5616.tar.bz2
Display message only once
This prevents the message from being displayed more than once if it matches more than one of the nicknames on our "no hilight" list. Otherwise it would print the message once for every nickname matched. Relay bots are a prime example of how this bug can be triggered.
-rw-r--r--nohilight.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/nohilight.pl b/nohilight.pl
index 6578948..b2b82d4 100644
--- a/nohilight.pl
+++ b/nohilight.pl
@@ -21,6 +21,7 @@ sub remove_hilight {
$text =~ s/%/%%/g;
$window->print($text, MSGLEVEL_PUBLIC);
Irssi::signal_stop();
+ return;
}
}
}