diff options
| author | Cerapter <cerap@protonmail.com> | 2018-09-02 22:51:20 +0200 |
|---|---|---|
| committer | Cerapter <cerap@protonmail.com> | 2018-09-02 22:51:20 +0200 |
| commit | c8142f3f53ba926b4e5ab729ed1ca8c47998d4df (patch) | |
| tree | cc8e0b01f371bcce12b8423903e7f6f66e2ef2a9 /server/aoprotocol.py | |
| parent | 34d6f6fa544ca90140e138c557fa651c74d76d4a (diff) | |
Curse added: `/shake id`, `/unshake id`.
Randomises word order in IC and OOC chat.
Diffstat (limited to 'server/aoprotocol.py')
| -rw-r--r-- | server/aoprotocol.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/aoprotocol.py b/server/aoprotocol.py index 5dbb192e..8516c9f8 100644 --- a/server/aoprotocol.py +++ b/server/aoprotocol.py @@ -403,6 +403,8 @@ class AOProtocol(asyncio.Protocol): if pos not in ('def', 'pro', 'hld', 'hlp', 'jud', 'wit'): return msg = text[:256] + if self.client.shaken: + msg = self.client.shake_message(msg) if self.client.disemvowel: msg = self.client.disemvowel_message(msg) self.client.pos = pos @@ -463,6 +465,8 @@ class AOProtocol(asyncio.Protocol): except (ClientError, AreaError, ArgumentError, ServerError) as ex: self.client.send_host_message(ex) else: + if self.client.shaken: + args[1] = self.client.shake_message(args[1]) if self.client.disemvowel: args[1] = self.client.disemvowel_message(args[1]) self.client.area.send_command('CT', self.client.name, args[1]) |
