3
0
mirror of https://github.com/jlu5/PyLink.git synced 2025-04-12 02:37:51 +02:00

Irc: rewrite getServer() to look for IrcUser.server attribute ()

The relevant attribute was introduced in c57fabc9ef2f9acecc70130e6f48c17ab435dc6d.
This commit is contained in:
James Lu 2016-11-09 18:52:51 -08:00
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):
"""