From b72420a8aa6529a9a8ae24babc733040deaf428b Mon Sep 17 00:00:00 2001 From: James Lu Date: Sat, 26 May 2018 01:00:58 -0700 Subject: [PATCH] Revert "NetworkCore: return the server in get_server if the arg was a server" The complete implementation of is_privileged_service() in ec3a94c4ca61f2b9b32dab9a18d590d206cc4484 explicitly checks the entity ID type, so this strange hack is not needed. This reverts commit 9113b34b46ba6aa2b381b3c7e9822b4f411caaec. --- classes.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/classes.py b/classes.py index ef1909a..6a7b3a0 100644 --- a/classes.py +++ b/classes.py @@ -635,9 +635,6 @@ class PyLinkNetworkCore(structures.CamelCaseToSnakeCase): def get_server(self, numeric): """Finds the SID of the server a user is on.""" - if numeric in self.servers: # We got a server already (lazy hack) - return numeric - userobj = self.users.get(numeric) if userobj: return userobj.server