From f496c31d1cf938bebfa47b30cf35c7c9472b681c Mon Sep 17 00:00:00 2001 From: nemunaire Date: Thu, 29 Oct 2015 22:43:37 +0100 Subject: [PATCH] Help: don't append space character before ':' when the usage key is None --- nemubot/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nemubot/bot.py b/nemubot/bot.py index 562a099..2fcce60 100644 --- a/nemubot/bot.py +++ b/nemubot/bot.py @@ -102,7 +102,7 @@ class Bot(threading.Thread): for (s, h) in self.modules[module].__nemubot_context__.hooks: if s == "in_Command" and (h.name is not None or h.regexp is not None) and h.is_matching(msg.args[0][1:]): if h.help_usage: - return res.append_message(["\x03\x02%s%s\x03\x02: %s" % (msg.args[0], " " + (k if k is not None else ""), h.help_usage[k]) for k in h.help_usage], title="Usage for command %s from module %s" % (msg.args[0], module)) + return res.append_message(["\x03\x02%s%s\x03\x02: %s" % (msg.args[0], (" " + k if k is not None else ""), h.help_usage[k]) for k in h.help_usage], title="Usage for command %s from module %s" % (msg.args[0], module)) elif h.help: return res.append_message("Command %s from module %s: %s" % (msg.args[0], module, h.help)) else: