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.
This commit is contained in:
Cerapter 2018-08-03 19:52:32 +02:00
parent c460a5b795
commit 8e39224890

View File

@ -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]