mirror of
https://github.com/jlu5/PyLink.git
synced 2025-02-17 14:01:03 +01:00
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.
This commit is contained in:
parent
ec3a94c4ca
commit
b72420a8aa
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user