summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorScott Ostler <scottbot9000@gmail.com>2010-06-22 02:58:01 -0400
committerScott Ostler <scottbot9000@gmail.com>2010-06-22 02:58:01 -0400
commita5c1f147db69d161110286e40da3c7f0c18cae8b (patch)
tree744b5eb752eaedc39c4b3e9e47c1daf612133ae8 /src
parentfbc3843a31650a783b81121ae10901e52487017a (diff)
Add server-check for nick length
Diffstat (limited to 'src')
-rw-r--r--src/user.clj1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/user.clj b/src/user.clj
index 387a7ad..417470b 100644
--- a/src/user.clj
+++ b/src/user.clj
@@ -13,6 +13,7 @@
(defn is-invalid-nick? [n]
(cond
(< (count n) 3) "NICK_TOO_SHORT"
+ (> (count n) 16) "NICK_TOO_LONG"
(not (re-matches *nick-regex* n)) "NICK_INVALID_CHARS"))
(defn fetch-nick [nick]