mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-25 04:02:45 +01:00
Irc: Return False instead of None when isInternalClient fails to find a match
This commit is contained in:
parent
eac934c237
commit
6577013ada
@ -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."""
|
||||||
|
Loading…
Reference in New Issue
Block a user