3
0
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:
James Lu 2016-11-09 18:52:51 -08:00
parent c57fabc9ef
commit ddd0436937

View File

@ -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):
"""