aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/wee_slack.py b/wee_slack.py
index b368ceb..145edfc 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -302,7 +302,9 @@ def buffer_typing_update_cb(data, remaining_calls):
def hotlist_cache_update_cb(data, remaining_calls):
#this keeps the hotlist dupe up to date for the buffer switch, but is prob technically a race condition. (meh)
global hotlist
+ prev_hotlist = hotlist
hotlist = w.infolist_get("hotlist", "", "")
+ w.infolist_free(prev_hotlist)
return w.WEECHAT_RC_OK
def buffer_switch_cb(signal, sig_type, data):