X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/ircbot/blobdiff_plain/bb72ec7b3d1a2cac3c26fea0c812c17f5559b478..22368e4c2039ee2d245a9322ff9a5b68f3dc38d0:/bot.tcl?ds=inline diff --git a/bot.tcl b/bot.tcl index 9b73cc9..b706312 100755 --- a/bot.tcl +++ b/bot.tcl @@ -5,6 +5,7 @@ set helpfile helpinfos source irccore.tcl source parsecmd.tcl source stdhelp.tcl +source userv.tcl defset marktime_min 300 defset marktime_join_startdelay 5000 @@ -794,14 +795,6 @@ proc msg_366 {p c args} { unset names_chans } -proc check_username {target} { - if { - [string length $target] > 8 || - [regexp {[^-0-9a-z]} $target] || - ![regexp {^[a-z]} $target] - } { error "invalid username" } -} - proc somedb__head {} { uplevel 1 { set idl [irctolower $id]