aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorRyan Huber <rhuber@gmail.com>2015-12-04 20:03:14 +0000
committerRyan Huber <rhuber@gmail.com>2015-12-04 20:03:14 +0000
commit96531dd6b9687410d633d17da9ea387db7e621f8 (patch)
tree40ad69a8755d1565ab22855d5dc30ffeee2bfb65 /wee_slack.py
parentf96dd6cbaff5123c7925b29742c61c56b6576586 (diff)
downloadwee-slack-96531dd6b9687410d633d17da9ea387db7e621f8.tar.gz
always update the channels hashtable when we attach or detach a buffer
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 8a01ff7..5e2dd6f 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -408,11 +408,15 @@ class Channel(object):
# w.buffer_set(self.channel_buffer, "highlight_words", self.server.nick)
else:
self.channel_buffer = None
+ channels.update_hashtable()
+ self.server.channels.update_hashtable()
def detach_buffer(self):
if self.channel_buffer is not None:
w.buffer_close(self.channel_buffer)
self.channel_buffer = None
+ channels.update_hashtable()
+ self.server.channels.update_hashtable()
def update_nicklist(self, user=None):
if self.channel_buffer: