mirror of
https://github.com/jlu5/PyLink.git
synced 2025-01-12 21:22:36 +01:00
Revert "NetworkCore: return the server in get_server if the arg was a server"
The complete implementation of is_privileged_service() inec3a94c4ca
explicitly checks the entity ID type, so this strange hack is not needed. This reverts commit9113b34b46
.
This commit is contained in:
parent
ec3a94c4ca
commit
b72420a8aa
@ -635,9 +635,6 @@ class PyLinkNetworkCore(structures.CamelCaseToSnakeCase):
|
|||||||
|
|
||||||
def get_server(self, numeric):
|
def get_server(self, numeric):
|
||||||
"""Finds the SID of the server a user is on."""
|
"""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)
|
userobj = self.users.get(numeric)
|
||||||
if userobj:
|
if userobj:
|
||||||
return userobj.server
|
return userobj.server
|
||||||
|
Loading…
Reference in New Issue
Block a user