forked from rDrama/rDrama
1
0
Fork 0

make tempbans not apply to private chats on rdrama

master
Aevann 2024-05-31 11:26:29 +03:00
parent 7e068a4800
commit 7f5a502fb6
1 changed files with 2 additions and 1 deletions

View File

@ -58,7 +58,8 @@ def refresh_chat(chat_id):
@socketio.on('speak')
@auth_required_socketio
def speak(data, v):
if v.is_suspended: return ''
if SITE_NAME == 'WPD' and v.is_suspended:
return ''
try: chat_id = int(data['chat_id'])
except: return ''