mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-01 01:09:22 +01:00
Irc: rewrite getServer() to look for IrcUser.server attribute (#355)
The relevant attribute was introduced in c57fabc9ef
.
This commit is contained in:
parent
c57fabc9ef
commit
ddd0436937
@ -890,9 +890,9 @@ class Irc():
|
||||
|
||||
def getServer(self, numeric):
|
||||
"""Finds the SID of the server a user is on."""
|
||||
for server in self.servers:
|
||||
if numeric in self.servers[server].users:
|
||||
return server
|
||||
userobj = self.users.get(numeric)
|
||||
if userobj:
|
||||
return userobj.server
|
||||
|
||||
def isManipulatableClient(self, uid):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user