From 06b2171943537bf902814550de009d2328a354d9 Mon Sep 17 00:00:00 2001 From: Morgan McMillian Date: Mon, 24 Apr 2017 19:43:06 -0700 Subject: [PATCH] try a different format for the display name --- appservice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appservice.py b/appservice.py index c6b0459..7c3bca1 100644 --- a/appservice.py +++ b/appservice.py @@ -32,7 +32,7 @@ def on_receive_events(transaction): text = event['content']['body'] else: token = app.config['MATRIX_PNUT_TOKEN'] - text = "" + get_displayname(event["user_id"]) + " : " + event['content']['body'] + text = "[" + get_displayname(event["user_id"]) + "] " + event['content']['body'] elif event['content']['msgtype'] == 'm.emote': if user: token = user.pnut_token