aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorRyan Huber <rhuber@gmail.com>2015-01-19 16:19:54 -0800
committerRyan Huber <rhuber@gmail.com>2015-01-19 16:19:54 -0800
commit6b9d3ae9160f6376a9a818dddb7d23bfd4fa31ae (patch)
tree5a4014d4b6ab887a40a1ba3ebc193b0916eb654f /wee_slack.py
parent72d164a1a5689294ea6fd9f8d72056e6ed34755f (diff)
downloadwee-slack-6b9d3ae9160f6376a9a818dddb7d23bfd4fa31ae.tar.gz
make debug toggle actually work
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py5
1 files changed, 4 insertions, 1 deletions
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