From: Vincent Le Gallic Date: Fri, 16 Jun 2017 13:56:43 +0000 (+0200) Subject: Ne pas échoue sur un HELP COMMANDE d'un non-op X-Git-Url: http://gitweb.pimeys.fr/?p=bots%2Fbasile.git;a=commitdiff_plain;h=bbedcbe944e252bd0be57b281f7e6b6aff469542 Ne pas échoue sur un HELP COMMANDE d'un non-op --- diff --git a/basile.py b/basile.py index 81ada60..ad22ab6 100755 --- a/basile.py +++ b/basile.py @@ -308,6 +308,8 @@ class Basile(ircbot.SingleServerIRCBot): helpmsg += "\n" + helpmsgs[2] else: helpmsg = helpmsgs[2] + if not helpmsg: # Un non-op a demandé de l'aide sur une commande dont il n'est pas censé connaître l'existence + helpmsg = "Commande inacessible." for ligne in helpmsg.split("\n"): serv.privmsg(auteur, ligne.encode("utf-8")) elif cmd == u"identify":