From 58ff4d24cc7f85447b2d32a204bfee7fde90cf8d Mon Sep 17 00:00:00 2001 From: Ondrej Mikle Date: Sun, 29 Oct 2017 19:41:48 +0100 Subject: [PATCH] Note about topic retrieval bug --- brmdoor_nfc_daemon.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/brmdoor_nfc_daemon.py b/brmdoor_nfc_daemon.py index 628560d..ee79521 100755 --- a/brmdoor_nfc_daemon.py +++ b/brmdoor_nfc_daemon.py @@ -239,6 +239,7 @@ class IrcThread(threading.Thread): return False def getTopic(self, channel): + """ TODO: this doesn't work, the implementation always returns None""" with self.threadLock: return self.connection.topic(channel) @@ -320,7 +321,7 @@ class OpenSwitchThread(threading.Thread): if self.ircThread.connected: for channel in self.ircThread.channels: - #TODO: this always returns None, don't know why + #TODO: getTopic always returns None, the problem is in implementenation topic = self.ircThread.getTopic(channel) if not topic or not re.match(r"^\s*(OPEN|CLOSED) \|", topic): newTopic = strStatus