diff options
author | Ryan Huber <rhuber@gmail.com> | 2015-01-19 16:19:54 -0800 |
---|---|---|
committer | Ryan Huber <rhuber@gmail.com> | 2015-01-19 16:19:54 -0800 |
commit | 6b9d3ae9160f6376a9a818dddb7d23bfd4fa31ae (patch) | |
tree | 5a4014d4b6ab887a40a1ba3ebc193b0916eb654f /wee_slack.py | |
parent | 72d164a1a5689294ea6fd9f8d72056e6ed34755f (diff) | |
download | wee-slack-6b9d3ae9160f6376a9a818dddb7d23bfd4fa31ae.tar.gz |
make debug toggle actually work
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 5 |
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 |