Check-in [ea4794eca7]
Overview
SHA1:ea4794eca7be6804391e42278155173ef04e5932
Date: 2016-09-15 03:18:02
User: rkeene
Comment:Better implementation of NICK cleaning
Timelines: family | ancestors | descendants | both | trunk
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2016-09-15
03:18
[c19d78c4de] Fixed missing update (user: rkeene, tags: trunk)
03:18
[ea4794eca7] Better implementation of NICK cleaning (user: rkeene, tags: trunk)
03:13
[658b5cfcc1] Added additional NICK syntax support (user: rkeene, tags: trunk)
Changes

Modified ircd.tcl from [9fa24bb136] to [cc8b6d5fe5].

   102    102   	return
   103    103       }
   104    104       if {$line eq {}} return
   105    105       set line [string trim $line]
   106    106       debug "([clientState $fd]:$fd) [clientNick $fd] -> '$line'"
   107    107       if {[clientState $fd] eq {UNREGISTERED}} {
   108    108   	if {[regexp -nocase {NICK +([^ ]+)$} $line -> nick]} {
   109         -            if {[string index $nick 0] eq ":"} {
   110         -                set nick [string range $nick 1 end]
   111         -            }
          109  +            stripColon nick
   112    110   	    if {[nickToFd $nick] ne {}} {
   113    111   		rawMsg $fd "433 * $nick :Nickname is already in use."
   114    112   		return
   115    113   	    }
   116    114   	    clientNick $fd $nick
   117    115   	    nickToFd $nick $fd
   118    116   	    if {[clientUser $fd] ne {}} {