summaryrefslogtreecommitdiff
path: root/src/user.clj
diff options
context:
space:
mode:
Diffstat (limited to 'src/user.clj')
-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]