mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-11-15 02:21:21 +01:00
Pop guild key during fetch if revoked
Because the key is supposedly no good
This commit is contained in:
parent
d90cd64b0f
commit
0200923524
@ -295,6 +295,8 @@ def fetch():
|
|||||||
messages = {}
|
messages = {}
|
||||||
if status['banned'] or status['revoked']:
|
if status['banned'] or status['revoked']:
|
||||||
status_code = 403
|
status_code = 403
|
||||||
|
if user_unauthenticated():
|
||||||
|
session['user_keys'].pop(guild_id, None)
|
||||||
else:
|
else:
|
||||||
chan = filter_guild_channel(guild_id, channel_id)
|
chan = filter_guild_channel(guild_id, channel_id)
|
||||||
if not chan.get("read"):
|
if not chan.get("read"):
|
||||||
|
Loading…
Reference in New Issue
Block a user