aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Huber <rhuber@gmail.com>2015-12-04 12:09:01 -0800
committerRyan Huber <rhuber@gmail.com>2015-12-04 12:09:01 -0800
commitf2c77ca3e5f04f4938339cfeda489553089a8128 (patch)
tree6d121b1b079dcbf81bd01416d21be0d5ef1e63d4
parentf96dd6cbaff5123c7925b29742c61c56b6576586 (diff)
parentd293136dac725addd2f39505c5538c83390d0ac5 (diff)
downloadwee-slack-f2c77ca3e5f04f4938339cfeda489553089a8128.tar.gz
Merge pull request #142 from rawdigits/141_dm_to_wrong_person
always update the channels hashtable when we attach or detach a buffer
-rw-r--r--wee_slack.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 8a01ff7..3993e9a 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -23,7 +23,7 @@ except:
SCRIPT_NAME = "slack_extension"
SCRIPT_AUTHOR = "Ryan Huber <rhuber@gmail.com>"
-SCRIPT_VERSION = "0.99.2"
+SCRIPT_VERSION = "0.99.3"
SCRIPT_LICENSE = "MIT"
SCRIPT_DESC = "Extends weechat for typing notification/search/etc on slack.com"
@@ -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: