diff options
| author | Cerapter <cerap@protonmail.com> | 2018-07-31 03:24:44 +0200 |
|---|---|---|
| committer | Cerapter <cerap@protonmail.com> | 2018-07-31 03:24:44 +0200 |
| commit | 651585f1912ee30d8940243186dbacac518458f8 (patch) | |
| tree | 339b8cde61b32e57980bdc6114be647e97bd601b /server/aoprotocol.py | |
| parent | 374e939ac467cf98bd785442f28a4ec802f27dc6 (diff) | |
Fixed a bug where shownames would always be forbidden.
Diffstat (limited to 'server/aoprotocol.py')
| -rw-r--r-- | server/aoprotocol.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/server/aoprotocol.py b/server/aoprotocol.py index e0c35e8b..d21a6a54 100644 --- a/server/aoprotocol.py +++ b/server/aoprotocol.py @@ -347,12 +347,11 @@ 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, self.ArgType.STR): msg_type, pre, folder, anim, text, pos, sfx, anim_type, cid, sfx_delay, button, evidence, flip, ding, color, showname = args - if len(showname) > 0 and not self.client.area.showname_changes_allowed == "true": + if len(showname) > 0 and not self.client.area.showname_changes_allowed: self.client.send_host_message("Showname changes are forbidden in this area!") return else: return - msg_type, pre, folder, anim, text, pos, sfx, anim_type, cid, sfx_delay, button, evidence, flip, ding, color = args if self.client.area.is_iniswap(self.client, pre, anim, folder) and folder != self.client.get_char_name(): self.client.send_host_message("Iniswap is blocked in this area") return |
