From 8e3922489095d83532b1c5273137c57a3a3ff3a8 Mon Sep 17 00:00:00 2001 From: Cerapter Date: Fri, 3 Aug 2018 19:52:32 +0200 Subject: [PATCH] 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. --- server/aoprotocol.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/aoprotocol.py b/server/aoprotocol.py index d21a6a5..1711eba 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]