From f9828e94595b110656281f85610974c7808d0db5 Mon Sep 17 00:00:00 2001 From: Benedikt Ziemons Date: Thu, 25 Jul 2019 23:18:32 +0200 Subject: [PATCH] Fix getting msgtype argument --- wmn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wmn.py b/wmn.py index 665b2b2..fdb467f 100644 --- a/wmn.py +++ b/wmn.py @@ -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: