diff options
author | Ryan Huber <rhuber@gmail.com> | 2015-12-04 20:03:14 +0000 |
---|---|---|
committer | Ryan Huber <rhuber@gmail.com> | 2015-12-04 20:03:14 +0000 |
commit | 96531dd6b9687410d633d17da9ea387db7e621f8 (patch) | |
tree | 40ad69a8755d1565ab22855d5dc30ffeee2bfb65 | |
parent | f96dd6cbaff5123c7925b29742c61c56b6576586 (diff) | |
download | wee-slack-96531dd6b9687410d633d17da9ea387db7e621f8.tar.gz |
always update the channels hashtable when we attach or detach a buffer
-rw-r--r-- | wee_slack.py | 4 |
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: |