From 6b9d3ae9160f6376a9a818dddb7d23bfd4fa31ae Mon Sep 17 00:00:00 2001 From: Ryan Huber Date: Mon, 19 Jan 2015 16:19:54 -0800 Subject: make debug toggle actually work --- wee_slack.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'wee_slack.py') diff --git a/wee_slack.py b/wee_slack.py index 42e2b85..ce6a80c 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -1037,6 +1037,9 @@ def process_message(message_json): channel.buffer_prnt(name, text, time) # server.channels.find(channel).buffer_prnt(name, text, time) + else: + if message_json["reply_to"] != None: + cache_message(message_json) def unwrap_message(message_json): @@ -1357,7 +1360,7 @@ def config_changed_cb(data, option, value): colorize_nicks = w.config_get_plugin('colorize_nicks') == "1" slack_debug = None debug_mode = w.config_get_plugin("debug_mode").lower() - if debug_mode != '' or debug_mode != 'false': + if debug_mode != '' and debug_mode != 'false': create_slack_debug_buffer() return w.WEECHAT_RC_OK -- cgit