correction plantage modo perte variable lmod : attention, raison de la perte non comprise

This commit is contained in:
nemesis 2025-11-03 23:09:28 +01:00
parent 7262d190ba
commit 3b74dbbc14

View file

@ -740,7 +740,9 @@ async def modo(room,message): # Definition d'un moderateur
lmod = modos.get(room.room_id) lmod = modos.get(room.room_id)
except: except:
lmod = [] lmod = []
if (sender in admins or sender in lmod or sender == bot.client.user_id): if (lmod is None):
lmod = []
if (sender in admins or sender in lmod or sender == bot.client.user_id):
args = texte.split() args = texte.split()
args.pop(0) args.pop(0)
if (len(args) > 1 and args[0] == "add"): if (len(args) > 1 and args[0] == "add"):