aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCerapter <cerap@protonmail.com>2018-08-03 19:52:32 +0200
committerCerapter <cerap@protonmail.com>2018-08-03 19:52:32 +0200
commit8e3922489095d83532b1c5273137c57a3a3ff3a8 (patch)
tree95c79eae62985903b60e138fba41e49a3d91315f
parentc460a5b795bc4c65d271db5b6f2af0a946cf6947 (diff)
Showname fix, case insensitive commands.
- Fixed a problem wherein if you had 'Custom shownames' on, your client would display the foldernames of characters if their user hadn't given temselves a custom showname, instead of the character's showname.
-rw-r--r--server/aoprotocol.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/aoprotocol.py b/server/aoprotocol.py
index d21a6a54..1711ebaa 100644
--- a/server/aoprotocol.py
+++ b/server/aoprotocol.py
@@ -340,7 +340,7 @@ class AOProtocol(asyncio.Protocol):
self.ArgType.INT, self.ArgType.INT, self.ArgType.INT, self.ArgType.INT,
self.ArgType.INT, self.ArgType.INT, self.ArgType.INT):
msg_type, pre, folder, anim, text, pos, sfx, anim_type, cid, sfx_delay, button, evidence, flip, ding, color = args
- showname = self.client.get_char_name()
+ showname = ""
elif self.validate_net_cmd(args, self.ArgType.STR, self.ArgType.STR_OR_EMPTY, self.ArgType.STR,
self.ArgType.STR,
self.ArgType.STR, self.ArgType.STR, self.ArgType.STR, self.ArgType.INT,
@@ -442,7 +442,7 @@ class AOProtocol(asyncio.Protocol):
return
if args[1].startswith('/'):
spl = args[1][1:].split(' ', 1)
- cmd = spl[0]
+ cmd = spl[0].lower()
arg = ''
if len(spl) == 2:
arg = spl[1][:256]