aboutsummaryrefslogtreecommitdiff
path: root/server/client_manager.py
diff options
context:
space:
mode:
authorCerapter <cerap@protonmail.com>2018-08-12 02:17:07 +0200
committerCerapter <cerap@protonmail.com>2018-08-12 02:17:07 +0200
commit00b5af9b60aaeeb26511f29a6f839210ee9c8234 (patch)
tree0ee1abf19155650d1e541ed8613f290a5478d11f /server/client_manager.py
parentd444eb6dceb47123940baed5a255572d24567dc8 (diff)
Fixed the `/invite` and `/uninvite` commands so they work as they claim they do.
- You can now invite and uninvite by IDs.
Diffstat (limited to 'server/client_manager.py')
-rw-r--r--server/client_manager.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/client_manager.py b/server/client_manager.py
index 00301735..e127880c 100644
--- a/server/client_manager.py
+++ b/server/client_manager.py
@@ -168,7 +168,7 @@ class ClientManager:
def change_area(self, area):
if self.area == area:
raise ClientError('User already in specified area.')
- if area.is_locked and not self.is_mod and not self.ipid in area.invite_list:
+ if area.is_locked and not self.is_mod and not self.id in area.invite_list:
#self.send_host_message('This area is locked - you will be unable to send messages ICly.')
raise ClientError("That area is locked!")
old_area = self.area