mirror of
https://github.com/brmlab/brmdoor_libnfc.git
synced 2025-06-07 16:14:01 +02:00
Reassign topic handlers after reconnect, otherwise OPEN/CLOSE doesn't work
This commit is contained in:
parent
9b89a230c9
commit
3bd05b0b3d
1 changed files with 5 additions and 0 deletions
|
@ -280,6 +280,11 @@ class IrcThread(threading.Thread):
|
||||||
self.connection.join(channel)
|
self.connection.join(channel)
|
||||||
except:
|
except:
|
||||||
logging.exception("Exception when rejoining channels")
|
logging.exception("Exception when rejoining channels")
|
||||||
|
try:
|
||||||
|
self.reactor.server().add_global_handler("notopic", partial(IrcThread.onNoTopic, self))
|
||||||
|
self.reactor.server().add_global_handler("currenttopic", partial(IrcThread.onTopic, self))
|
||||||
|
except:
|
||||||
|
logging.exception("Exception while reassigning topic handlers")
|
||||||
|
|
||||||
|
|
||||||
def onJoin(self, connection, event):
|
def onJoin(self, connection, event):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue