mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-24 03:29:28 +01:00
ServiceBot: verify that the service name is a valid nick
This commit is contained in:
parent
d31d09ce7e
commit
d33eb22ca3
3
utils.py
3
utils.py
@ -186,6 +186,9 @@ class ServiceBot():
|
|||||||
# Service name
|
# Service name
|
||||||
self.name = name
|
self.name = name
|
||||||
|
|
||||||
|
# TODO: validate nick, ident, etc. on runtime as well
|
||||||
|
assert isNick(name), "Invalid service name %r" % name
|
||||||
|
|
||||||
# Nick/ident to take. Defaults to the same as the service name if not given.
|
# Nick/ident to take. Defaults to the same as the service name if not given.
|
||||||
self.nick = nick
|
self.nick = nick
|
||||||
self.ident = ident
|
self.ident = ident
|
||||||
|
Loading…
Reference in New Issue
Block a user