mirror of
https://github.com/jlu5/PyLink.git
synced 2025-02-09 02:54:14 +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):
|
def _getSid(self, sname):
|
||||||
"""Returns the SID of a server with the given name, if present."""
|
"""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():
|
for k, v in self.irc.servers.items():
|
||||||
if v.name.lower() == nick:
|
if v.name.lower() == name:
|
||||||
return k
|
return k
|
||||||
else:
|
else:
|
||||||
return sname # Fall back to given text instead of None
|
return sname # Fall back to given text instead of None
|
||||||
|
Loading…
Reference in New Issue
Block a user