This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

getxtra/setxtra

Old posts that have not been replied to for several years.
Locked
[
[Nero]
Voice
Posts: 29
Joined: Mon May 27, 2002 8:00 pm

getxtra/setxtra

Post by [Nero] »

Hi Everyone
Can any help as into why this routine wont work, its only a small snippet from a very old script & i understand that getxtra & setxtra are not used now, can anyone help in how i can convert these statements to work please, many thanx

if {($handle == "*") && (![validuser $nick]) && ($mask != "*")} {
adduser $nick $mask
chattr $nick "-ofxp"
chattr $nick "+0"
setxtra $nick "0 0 0 0 0"
set handle $nick
save
} elseif {[validuser $nick]} {
set ustatus [getxtra $nick]
if {$ustatus == ""} {
chattr $nick "+0"
setxtra $nick "0 0 0 0 0"
save
} elseif {[llength $ustatus] < 5} {
chattr $nick "+0"
setxtra $nick "$ustatus 0"
save
}
}
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »

take a look in the tcl-commands.doc, read about getuser and setuser
Elen sila lúmenn' omentielvo
Locked