From 042c6454f3431900850d92f9196d2775681738d6 Mon Sep 17 00:00:00 2001 From: kaliko Date: Tue, 3 Feb 2015 14:59:35 +0100 Subject: [PATCH] More robust client2client discovery --- sima/plugins/core/uniq.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sima/plugins/core/uniq.py b/sima/plugins/core/uniq.py index 17b17e2..1abdd62 100644 --- a/sima/plugins/core/uniq.py +++ b/sima/plugins/core/uniq.py @@ -52,11 +52,11 @@ class Uniq(Plugin): self.sub_chan() def is_capable(self): - if 'channels' in self.player.commands(): - if 'subscribe' in self.player.commands(): # Groove Basin compatibility - # For some reason Groove Basin have channels command but no - # subscribe command‽ - return True + if {'channels', 'subscribe'}.issubset(set(self.player.commands())): + # Groove Basin compatibility + # For some reason Groove Basin have channels command but no + # subscribe command‽ + return True def get_channels(self): return [chan for chan in self.player.channels() if -- 2.39.2