mirror of
https://github.com/brmlab/brmdoor_libnfc.git
synced 2025-06-08 00:24:00 +02:00
Note about topic retrieval bug
This commit is contained in:
parent
5e2b8e0261
commit
58ff4d24cc
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue