From 4157cb5671691b848a19c2f084e2d49fd6212381 Mon Sep 17 00:00:00 2001 From: James Lu Date: Sun, 3 Apr 2016 12:49:50 -0700 Subject: [PATCH] ts6_common: use a better variable name for _getSid() --- protocols/ts6_common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protocols/ts6_common.py b/protocols/ts6_common.py index 8ab37fe..b641cb2 100644 --- a/protocols/ts6_common.py +++ b/protocols/ts6_common.py @@ -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