3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 01:09:22 +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.uplink = uplink
self.users = set() self.users = set()
self.internal = internal self.internal = internal
if isinstance(name, str):
self.name = name.lower() self.name = name.lower()
else:
self.name = name
self.desc = desc self.desc = desc
self._irc = irc self._irc = irc