3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-26 04:32:51 +01:00

classes: allow Server name to be a non-string type

This commit is contained in:
James Lu 2019-02-16 16:32:42 -08:00
parent 96815a0a32
commit 55360dd0b2

View File

@ -2088,7 +2088,10 @@ class Server():
self.uplink = uplink
self.users = set()
self.internal = internal
self.name = name.lower()
if isinstance(name, str):
self.name = name.lower()
else:
self.name = name
self.desc = desc
self._irc = irc