generated from Nemesis/Exemple
correction plantage modo perte variable lmod : attention, raison de la perte non comprise
This commit is contained in:
parent
7262d190ba
commit
3b74dbbc14
1 changed files with 3 additions and 1 deletions
|
|
@ -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"):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue