From 45a55ec26dba7f2298bfb0498598db4fea2dba03 Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Sat, 11 Feb 2017 18:40:44 +0100 Subject: [PATCH] We need to bail when there _arent_ any relays connected --- pushjet.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pushjet.py b/pushjet.py index 6de354d..98c789e 100644 --- a/pushjet.py +++ b/pushjet.py @@ -137,8 +137,8 @@ def should_send(buffer, tags, nick, highlighted): elif notify_when == 'detached': # user has opted to only be notified when detached (relays) num_relays = weechat.info_get('relay_client_count', 'connected') - if num_relays == 0: - # no relays connected, bail + if num_relays != 0: + # some relay(s) connected, bail return False if nick == weechat.buffer_get_string(buffer, 'localvar_nick'):