From d33eb22ca37193ad9121239c91dc42b5885b7797 Mon Sep 17 00:00:00 2001 From: James Lu Date: Sat, 21 Jan 2017 11:57:26 -0800 Subject: [PATCH] ServiceBot: verify that the service name is a valid nick --- utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils.py b/utils.py index 611a9a2..4f288d7 100644 --- a/utils.py +++ b/utils.py @@ -186,6 +186,9 @@ class ServiceBot(): # Service 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. self.nick = nick self.ident = ident