generated from Nemesis/Exemple
bug d'ajout de modo quand la liste n'existait pas pour le salon
This commit is contained in:
parent
b5315bf239
commit
611a3940ce
1 changed files with 2 additions and 0 deletions
|
|
@ -748,6 +748,8 @@ async def modo(room,message): # Definition d'un moderateur
|
|||
lmod = []
|
||||
try:
|
||||
lmod = modos.get(room.room_id)
|
||||
if (lmod is None):
|
||||
lmod = []
|
||||
except:
|
||||
lmod = []
|
||||
if (sender in admins or sender in lmod or sender == bot.api.async_client.whoami()):
|
||||
|
|
|
|||
Loading…
Reference in a new issue