bug d'ajout de modo quand la liste n'existait pas pour le salon

This commit is contained in:
nemesis 2026-04-17 12:01:35 +02:00
parent b5315bf239
commit 611a3940ce

View file

@ -748,6 +748,8 @@ async def modo(room,message): # Definition d'un moderateur
lmod = [] lmod = []
try: try:
lmod = modos.get(room.room_id) lmod = modos.get(room.room_id)
if (lmod is None):
lmod = []
except: except:
lmod = [] lmod = []
if (sender in admins or sender in lmod or sender == bot.api.async_client.whoami()): if (sender in admins or sender in lmod or sender == bot.api.async_client.whoami()):