alias auth {
/as userinfo %authname
}
on *:notice:*authenticated to account*:*:{
set %auth $gettok($6,1,2)
}
elseif ($1 == $+(%trig,deluser)) {
set %authname $2
if ($2 == $null) { notice $Nick Incorrect Syntax, use: $+(%trig,deluser) <nick> | halt }
if (!$readini(data.ini,access,$address($nick,2))) { notice $Nick Error, You are not on the Adminstrative list. | halt }
if (!$readini(data.ini,access,$address($2,2))) { notice $nick The user by the name $2 does not exist in our database. | halt }
if ($readini(data.ini,access,$address($2,2)) > $readini(data.ini,access,$address($nick,2))) { notice $Nick Error, You do not have enough access for this command. | halt }
if ($readini(data.ini,access,$address($2,2)) < 100) { remini auth.ini Level-0 %auth $3 | remini data.ini access $address($2,2) | remini users.ini $address($2,2) | notice $Nick user $2 has been removed from the database. | halt }
if ($readini(data.ini,access,$address($2,2)) < 200) { remini auth.ini Level-1 %auth $3 | remini data.ini access $address($2,2) | remini users.ini $address($2,2) | notice $Nick user $2 has been removed from the database. | halt }
if ($readini(data.ini,access,$address($2,2)) < 300) { remini auth.ini Level-2 %auth $3 | remini data.ini access $address($2,2) | remini users.ini $address($2,2) | notice $Nick user $2 has been removed from the database. | halt }
if ($readini(data.ini,access,$address($2,2)) < 400) { remini auth.ini Level-3 %auth $3 | remini data.ini access $address($2,2) | remini users.ini $address($2,2) | notice $Nick user $2 has been removed from the database. | halt }
if ($readini(data.ini,access,$address($2,2)) < 500) { remini auth.ini Level-4 %auth $3 | remini data.ini access $address($2,2) | remini users.ini $address($2,2) | notice $Nick user $2 has been removed from the database. | halt }
if ($readini(data.ini,access,$address($2,2)) < 600) { remini auth.ini Level-5 %auth $3 | remini data.ini access $address($2,2) | remini users.ini $address($2,2) | notice $Nick user $2 has been removed from the database. | halt }
}
The problem is...When it calls on authserv for the /as userinfo it takes too long and by the time authserv responds with the authname, the script has already finished and therefore it doesnt delete the authname.