aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}