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:
parent
e687bb0a78
commit
4157cb5671
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user