aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 9d9c5bc..5155d32 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -232,7 +232,8 @@ def process_message(message_json):
channel = message_json["channel"]
user = user_hash[message_json["message"]["user"]]
if message_json["message"].has_key("attachments"):
- text = message_json["message"]["attachments"][0]["fallback"]
+ attachments = [x["text"] for x in message_json["message"]["attachments"]]
+ text = "\n".join(attachments)
text = text.encode('ascii', 'ignore')
else:
text = "%s\tEDITED: %s" % (user, message_json["message"]["text"])