tweaking wording on notice of restricted room

This commit is contained in:
Morgan McMillian 2017-05-25 08:53:11 -07:00
parent 69ff15d22f
commit 50dff7a634

View file

@ -100,7 +100,7 @@ def on_receive_events(transaction):
elif r.status_code == 401: elif r.status_code == 401:
txId += 1 txId += 1
err_notice = event["user_id"] + ": The pnut.io channel this room is connected with is restricted to valid " err_notice = event["user_id"] + ": The pnut.io channel this room is connected with is restricted to valid "
err_notice += "pnut.io users only. Direct chat this bot to associate your account." err_notice += "pnut.io users only. Start a direct chat to link your account."
body = {'msgtype': 'm.notice', 'body': err_notice} body = {'msgtype': 'm.notice', 'body': err_notice}
url = app.config['MATRIX_HOST'] url = app.config['MATRIX_HOST']
url += '/_matrix/client/r0/rooms/{0}/send/m.room.message/{1}'.format(event['room_id'], str(txId)) url += '/_matrix/client/r0/rooms/{0}/send/m.room.message/{1}'.format(event['room_id'], str(txId))