3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 01:09:22 +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:
if self.servers[sid].internal and numeric in self.servers[sid].users:
return sid
return False
def isInternalServer(self, sid):
"""Returns whether the given SID is an internal PyLink server."""