mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-27 21:19:31 +01:00
classes: allow Server name to be a non-string type
This commit is contained in:
parent
96815a0a32
commit
55360dd0b2
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user