From dc2cce5f4f1486e3f4c5e3d6999653639ca1b37f Mon Sep 17 00:00:00 2001 From: Griatch Date: Sat, 10 May 2014 19:57:59 +0200 Subject: [PATCH] Fixed the Command CmdExample class. --- src/commands/command.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/command.py b/src/commands/command.py index 2eea3223e..8cd332e5c 100644 --- a/src/commands/command.py +++ b/src/commands/command.py @@ -288,12 +288,12 @@ class Command(object): string += "-" * 50 string += "\nname of cmd (self.key): {w%s{n\n" % self.key string += "cmd aliases (self.aliases): {w%s{n\n" % self.aliases - string += "cmd perms (self.permissions): {w%s{n\n" % self.permissions - string += "help category (self.help_category): {w%s{n\n" % self.help_category + string += "cmd locks (self.locks): {w%s{n\n" % self.locks + string += "help category (self.help_category): {w%s{n\n" % self.help_category.capitalize() string += "object calling (self.caller): {w%s{n\n" % self.caller string += "object storing cmdset (self.obj): {w%s{n\n" % self.obj string += "command string given (self.cmdstring): {w%s{n\n" % self.cmdstring # show cmdset.key instead of cmdset to shorten output - string += fill("current cmdset (self.cmdset): {w%s{n\n" % self.cmdset) + string += fill("current cmdset (self.cmdset): {w%s{n\n" % (self.cmdset.key if self.cmdset.key else self.cmdset.__class__)) self.caller.msg(string)