diff --git a/appservice.py b/appservice.py index f98f668..e6a0a46 100644 --- a/appservice.py +++ b/appservice.py @@ -96,6 +96,9 @@ def query_alias(alias): cdata = json.loads(r.text)['data'] if cdata['type'] != 'io.pnut.core.chat': abort(404) + if 'is_active' in cdata: + if not cdata['is_active']: + abort(404) raw = cdata['raw'] for item in raw: if item['type'] == 'io.pnut.core.chat-settings':