diff options
| author | Cerapter <cerap@protonmail.com> | 2018-09-03 19:15:59 +0200 |
|---|---|---|
| committer | Cerapter <cerap@protonmail.com> | 2018-09-03 19:15:59 +0200 |
| commit | c395b9132eeccb10652f749866f40685ab7a14f5 (patch) | |
| tree | 0cd1c11e632b83857c355c43c0a377e3d37679e5 /server/aoprotocol.py | |
| parent | becf58dd4f9432364a64dc7af006b3938245127b (diff) | |
`/charcurse`, `/uncharcurse` and `/charids` commands.
Curses a player to only be able to use the given characters.
Diffstat (limited to 'server/aoprotocol.py')
| -rw-r--r-- | server/aoprotocol.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/aoprotocol.py b/server/aoprotocol.py index 31b45d9d..38876785 100644 --- a/server/aoprotocol.py +++ b/server/aoprotocol.py @@ -358,6 +358,9 @@ class AOProtocol(asyncio.Protocol): 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 + if len(self.client.charcurse) > 0 and folder != self.client.get_char_name(): + self.client.send_host_message("You may not iniswap while you are charcursed!") + return if not self.client.area.blankposting_allowed and text == ' ': self.client.send_host_message("Blankposting is forbidden in this area!") return |
