tentative de résolution de bug presence
This commit is contained in:
parent
0640c90489
commit
f6e563b071
6
bot.py
6
bot.py
|
@ -137,10 +137,10 @@ class MUCBot(slixmpp.ClientXMPP):
|
||||||
|
|
||||||
if presence['muc']['nick'] in self.datastore.knownMaintainers:
|
if presence['muc']['nick'] in self.datastore.knownMaintainers:
|
||||||
self.send_message(mto=presence['from'].bare,
|
self.send_message(mto=presence['from'].bare,
|
||||||
mbody="Salut %s, vos services ont produit des " +
|
mbody="Salut %s, vos services ont produit des " \
|
||||||
|
% (presence['muc']['nick']) +
|
||||||
"alertes en votre absence !\nUtilisez la commande"+
|
"alertes en votre absence !\nUtilisez la commande"+
|
||||||
" `hist` pour consulter l'historique"
|
" `hist` pour consulter l'historique",
|
||||||
% (presence['muc']['nick']),
|
|
||||||
mtype='groupchat')
|
mtype='groupchat')
|
||||||
|
|
||||||
if presence['muc']['affiliation'] == "owner":
|
if presence['muc']['affiliation'] == "owner":
|
||||||
|
|
Loading…
Reference in New Issue