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: