Fix getting msgtype argument

This commit is contained in:
Ben 2019-07-25 23:18:32 +02:00
parent 6ace0e70c7
commit f9828e9459
Signed by: ben
GPG key ID: 0F54A7ED232D3319

2
wmn.py
View file

@ -45,7 +45,7 @@ def get_a_room():
def get_msg_type():
if 'msgtype' not in request.args:
return "m.notice"
msgtype = request.args.get('channel')
msgtype = request.args.get('msgtype')
if msgtype in ["m.text", "m.notice"]:
return msgtype
else: