diff options
author | Joel Rosdahl <joel@rosdahl.net> | 2015-05-22 21:45:31 +0200 |
---|---|---|
committer | Joel Rosdahl <joel@rosdahl.net> | 2015-05-22 21:45:31 +0200 |
commit | 1646ef03e68ac38e18300379bf774e78299264a7 (patch) | |
tree | 5aae0c1b066dae6e07dc673a0305e862a8287fa8 /miniircd | |
parent | 97c116bc9461a37ac9466e304bc86fcc324fa2c8 (diff) | |
download | miniircd-1646ef03e68ac38e18300379bf774e78299264a7.tar.gz miniircd-1646ef03e68ac38e18300379bf774e78299264a7.zip |
Allow dash in nicknames
Diffstat (limited to 'miniircd')
-rwxr-xr-x | miniircd | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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}$") |