3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-27 21:19:31 +01:00

ServiceBot: verify that the service name is a valid nick

This commit is contained in:
James Lu 2017-01-21 11:57:26 -08:00
parent d31d09ce7e
commit d33eb22ca3

View File

@ -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