cosmétique
This commit is contained in:
parent
f6e563b071
commit
630ad6948c
2
bot.py
2
bot.py
|
@ -138,7 +138,7 @@ 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']) +
|
% (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",
|
||||||
mtype='groupchat')
|
mtype='groupchat')
|
||||||
|
|
|
@ -120,7 +120,7 @@ def cmdhist(owners, nick, text, store):
|
||||||
|
|
||||||
msg = "voici les cinq derniers évènements pour chaque hôte notifié:\n"
|
msg = "voici les cinq derniers évènements pour chaque hôte notifié:\n"
|
||||||
for host in store.knownMaintainers[nick]:
|
for host in store.knownMaintainers[nick]:
|
||||||
msg += "\nHôte %s:" % host
|
msg += "\nHôte %s:\n" % host
|
||||||
|
|
||||||
count = 0
|
count = 0
|
||||||
for serviceline in store.knownMaintainers[nick][host]:
|
for serviceline in store.knownMaintainers[nick][host]:
|
||||||
|
|
Loading…
Reference in New Issue