From a5c1f147db69d161110286e40da3c7f0c18cae8b Mon Sep 17 00:00:00 2001 From: Scott Ostler Date: Tue, 22 Jun 2010 02:58:01 -0400 Subject: Add server-check for nick length --- src/user.clj | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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] -- cgit v1.2.3-70-g09d2