3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 09:19:23 +01:00

ts6_common: use a better variable name for _getSid()

This commit is contained in:
James Lu 2016-04-03 12:49:50 -07:00
parent e687bb0a78
commit 4157cb5671

View File

@ -27,9 +27,9 @@ class TS6BaseProtocol(Protocol):
def _getSid(self, sname):
"""Returns the SID of a server with the given name, if present."""
nick = sname.lower()
name = sname.lower()
for k, v in self.irc.servers.items():
if v.name.lower() == nick:
if v.name.lower() == name:
return k
else:
return sname # Fall back to given text instead of None