From b41badee881bb3d41e63785ad0676b6c459d7fc9 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Mon, 30 Oct 2017 10:27:17 -0400 Subject: [PATCH] Correct bot-owner if statements --- telematrix/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/telematrix/__init__.py b/telematrix/__init__.py index 60844a8..7cee81b 100644 --- a/telematrix/__init__.py +++ b/telematrix/__init__.py @@ -237,15 +237,15 @@ async def matrix_transaction(request): continue if content['msgtype'] == 'm.text': - prefix = '<' + displayname + '> ' if displayname != '' + prefix = '' if displayname == '' else '<' + displayname + '> ' msg, mode = format_matrix_msg('{}{}', prefix, content) response = await group.send_text(msg, parse_mode=mode) elif content['msgtype'] == 'm.notice': - prefix = '[' + displayname + '] ' if displayname != '' + prefix = '' if displayname == '' else '[' + displayname + '] ' msg, mode = format_matrix_msg('{}{}', prefix, content) response = await group.send_text(msg, parse_mode=mode) elif content['msgtype'] == 'm.emote': - prefix = '* ' + displayname + ' ' if displayname != '' + prefix = '' if displayname == '' else '* ' + displayname + ' ' msg, mode = format_matrix_msg('{}{}', prefix, content) response = await group.send_text(msg, parse_mode=mode) elif content['msgtype'] == 'm.image':