From 1646ef03e68ac38e18300379bf774e78299264a7 Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Fri, 22 May 2015 21:45:31 +0200 Subject: Allow dash in nicknames --- miniircd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miniircd b/miniircd index f43bcfc..4652b9b 100755 --- a/miniircd +++ b/miniircd @@ -103,7 +103,7 @@ class Client(object): __linesep_regexp = re.compile(r"\r?\n") # The RFC limit for nicknames is 9 characters, but what the heck. __valid_nickname_regexp = re.compile( - r"^[][\`_^{|}A-Za-z][][\`_^{|}A-Za-z0-9]{0,50}$") + r"^[][\`_^{|}A-Za-z][][\`_^{|}A-Za-z0-9-]{0,50}$") __valid_channelname_regexp = re.compile( r"^[&#+!][^\x00\x07\x0a\x0d ,:]{0,50}$") -- cgit v1.2.3