aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorRyan Huber <rhuber@gmail.com>2015-08-02 20:33:45 -0700
committerRyan Huber <rhuber@gmail.com>2015-08-02 20:33:45 -0700
commit6bb94b8b4b602fcc63066a5887576fe204503d39 (patch)
tree29dd13016dca33ea67513199bbb6b21915aadd8a /wee_slack.py
parent317b7aedd13b781dafb723ae454c6218b6d7c430 (diff)
downloadwee-slack-6bb94b8b4b602fcc63066a5887576fe204503d39.tar.gz
derp - this broke stuff - removing fast
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 9fcccbc..df5b35e 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -1350,7 +1350,7 @@ def process_message(message_json, cache=True):
else:
text = ""
- text = text.decode('utf-8')
+ #text = text.decode('utf-8')
ignore_alt_text = False
if w.config_get_plugin('unfurl_ignore_alt_text') != "0":
@@ -1394,6 +1394,8 @@ def process_message(message_json, cache=True):
channel.cache_message(message_json)
except Exception:
+ if channel:
+ channel.buffer_prnt('unknown', message_json['text'].encode('utf-8'))
dbg("cannot process message {}\n{}".format(message_json, traceback.format_exc()))
def unwrap_message(message_json):