I got this secure auth tcl script written by Bommer which works perfectly on eggdrop 1.6.4 but flawed on 1.6.5/1.6.6. It couldn't detect handles on quit
here's the partial code.
Assume $auth_clones=0
*snip*
bind sign - * sign_auth
foreach u [userlist] { setuser $u XTRA auth 0 }
proc sign_auth {nick host hand chan reason} {
global auth_clones
if { $hand == "*" } { return 0 }
set a [getuser $hand XTRA auth]
if { $a >= 1 } {
if { $auth_clones == 1 && [getuser $hand XTRA authnick] != $nick } {
putcmdlog "AUTH: clone signoff ($nick != $hand)"
return 0
}
if { $a == 2 } {
set tmphost "*![getuser $hand XTRA authhost]"
delhost $hand $tmphost
putcmdlog "AUTH: Temporary hostmask $tmphost removed from $hand."
setuser $hand XTRA auth 0
}
}
}