Merge pull request from dkess/patch-1

Use string when comparing with info_get
This commit is contained in:
Adrian L Lange
2018-02-01 03:49:49 +01:00
committed by GitHub

@@ -137,7 +137,7 @@ 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:
if num_relays != '0':
# some relay(s) connected, bail
return False