From 077eea1f97973d2ee8866c3fb155a30d6f513f5c Mon Sep 17 00:00:00 2001 From: Morgan McMillian Date: Wed, 4 Oct 2017 08:37:03 -0700 Subject: [PATCH] fix syntax error in message redaction event --- appservice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appservice.py b/appservice.py index c634f4f..12e0cdb 100644 --- a/appservice.py +++ b/appservice.py @@ -126,7 +126,7 @@ def on_receive_events(transaction): r_event = MatrixMsgEvents.query.filter_by(event_id=event['redacts'],room_id=event['room_id']).first() if r_event: if r_event.pnut_user == app.config['MATRIX_PNUT_USER']: - token = token == app.config['MATRIX_PNUT_TOKEN'] + token = app.config['MATRIX_PNUT_TOKEN'] else: r_user = MatrixUser.query.filter_by(pnut_id=r_event.pnut_user).first() if r_user: