X-Git-Url: https://git.distorted.org.uk/~mdw/ircbot/blobdiff_plain/bb72ec7b3d1a2cac3c26fea0c812c17f5559b478..cdbc75693e6a8d44e9439dbce9a0cffa2542fd60:/bot.tcl 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]