3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-24 11:42:51 +01:00

Irc: Return False instead of None when isInternalClient fails to find a match

This commit is contained in:
James Lu 2015-12-31 17:53:33 -08:00
parent eac934c237
commit 6577013ada

View File

@ -451,6 +451,7 @@ class Irc():
for sid in self.servers: for sid in self.servers:
if self.servers[sid].internal and numeric in self.servers[sid].users: if self.servers[sid].internal and numeric in self.servers[sid].users:
return sid return sid
return False
def isInternalServer(self, sid): def isInternalServer(self, sid):
"""Returns whether the given SID is an internal PyLink server.""" """Returns whether the given SID is an internal PyLink server."""