diff options
author | Tom Feist <shabble@metavore.org> | 2011-04-22 09:37:37 +0000 |
---|---|---|
committer | Tom Feist <shabble@metavore.org> | 2011-04-22 09:37:37 +0000 |
commit | b319d546a98a83e58fd20aba26a19df5ffc33417 (patch) | |
tree | 6236534b47d38152fe6bb959ca96174059d1d0ea /quit-notify/notifyquit.pl | |
parent | merged vague's changes to watchlist. Things should (in theory) work. (diff) | |
download | irssi-scripts-b319d546a98a83e58fd20aba26a19df5ffc33417.tar.gz irssi-scripts-b319d546a98a83e58fd20aba26a19df5ffc33417.zip |
notifyquit: added additional check for non-channel activities which may
influence watchlist.
Diffstat (limited to 'quit-notify/notifyquit.pl')
-rw-r--r-- | quit-notify/notifyquit.pl | 6 |
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; } |