From a40710986fc73c5c8bfb1b8d3f9cd1a31960f2e8 Mon Sep 17 00:00:00 2001 From: ijackson Date: Mon, 11 Feb 2002 17:01:37 +0000 Subject: [PATCH] Check nick length --- irccore.tcl | 1 + 1 file changed, 1 insertion(+) diff --git a/irccore.tcl b/irccore.tcl index 4fbf639..22544df 100644 --- a/irccore.tcl +++ b/irccore.tcl @@ -232,6 +232,7 @@ proc msendprivmsg_delayed {delay dest ll} { after $delay [list msendprivmsg $des proc check_nick {n} { if {[regexp -nocase {[^][\\`_^{|}a-z0-9-]} $n]} { error "bad char in nick" } if {[regexp {^[-0-9]} $n]} { error "bad nick start" } + if {[string length $n] > 18} { error "nick too long" } } proc ischan {dest} { -- 2.30.2