3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-25 04:02:45 +01:00

Revert "NetworkCore: return the server in get_server if the arg was a server"

The complete implementation of is_privileged_service() in ec3a94c4ca explicitly checks the entity ID type, so this strange hack is not needed.

This reverts commit 9113b34b46.
This commit is contained in:
James Lu 2018-05-26 01:00:58 -07:00
parent ec3a94c4ca
commit b72420a8aa

View File

@ -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