Pop guild key during fetch if revoked

Because the key is supposedly no good
This commit is contained in:
Jeremy "EndenDragon" Zhang 2017-05-27 09:39:38 -07:00 committed by GitHub
parent d90cd64b0f
commit 0200923524

View File

@ -295,6 +295,8 @@ def fetch():
messages = {}
if status['banned'] or status['revoked']:
status_code = 403
if user_unauthenticated():
session['user_keys'].pop(guild_id, None)
else:
chan = filter_guild_channel(guild_id, channel_id)
if not chan.get("read"):