aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Feist <shabble@metavore.org>2011-04-22 09:37:37 +0000
committerTom Feist <shabble@metavore.org>2011-04-22 09:37:37 +0000
commitb319d546a98a83e58fd20aba26a19df5ffc33417 (patch)
tree6236534b47d38152fe6bb959ca96174059d1d0ea
parentmerged vague's changes to watchlist. Things should (in theory) work. (diff)
downloadirssi-scripts-b319d546a98a83e58fd20aba26a19df5ffc33417.tar.gz
irssi-scripts-b319d546a98a83e58fd20aba26a19df5ffc33417.zip
notifyquit: added additional check for non-channel activities which may
influence watchlist.
Diffstat (limited to '')
-rw-r--r--quit-notify/notifyquit.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/quit-notify/notifyquit.pl b/quit-notify/notifyquit.pl
index eef4276..026febd 100644
--- a/quit-notify/notifyquit.pl
+++ b/quit-notify/notifyquit.pl
@@ -284,6 +284,12 @@ sub check_watchlist {
my $check = exists ($watchlist->{$tag}->{$channel}->{$nick});
_debug("Check for $nick in $channel/$tag is " .( $check ? 'true' : 'false'));
+ # check the server-wide list if the channel-specific one fails.
+ if (not $check) {
+ $check = exists ($watchlist->{$tag}->{'***'}->{$nick});
+ _debug("Check for $nick in ***/$tag is " .( $check ? 'true' : 'false'));
+ }
+
return $check;
}