From bbedcbe944e252bd0be57b281f7e6b6aff469542 Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Fri, 16 Jun 2017 15:56:43 +0200 Subject: [PATCH] =?utf8?q?Ne=20pas=20=C3=A9choue=20sur=20un=20HELP=20COMMA?= =?utf8?q?NDE=20d'un=20non-op?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- basile.py | 2 ++ 1 file changed, 2 insertions(+) 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": -- 2.39.2