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