generated from Nemesis/Exemple
correction @room envoi msg en salon privé
This commit is contained in:
parent
90d53f8e0c
commit
a883df8cc4
1 changed files with 5 additions and 4 deletions
|
@ -295,10 +295,13 @@ class Parser: #Pour parser la ligne de commande
|
|||
return False
|
||||
|
||||
def msg(room,msg,sender,content=False):
|
||||
try:
|
||||
try:
|
||||
lmod = modos[room.room_id]
|
||||
if (sender not in admins and sender not in lmod):
|
||||
msg = msg.replace('@room', 'tout le monde')
|
||||
except:
|
||||
msg = msg.replace('@room', 'tout le monde')
|
||||
if content:
|
||||
bot.client.api.send_message_event(room.room_id, 'm.room.message', msg, None, None)
|
||||
else:
|
||||
|
@ -1810,8 +1813,6 @@ def bienvenue(event): # Affichage d'un message d'accueil aux nouveaux venus
|
|||
|
||||
@not_myself
|
||||
def addmails(room,event): # Abonnements mail aux messages
|
||||
global modules
|
||||
global modos
|
||||
try:
|
||||
rmod = modules[room.room_id, 'mails']
|
||||
except:
|
||||
|
|
Loading…
Reference in a new issue