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.

Info type question

Old posts that have not been replied to for several years.
Locked
B
Bizzy

Info type question

Post by Bizzy »

Is it possible to add a new info type to the user file?
(Like COMMENT , HOSTS , IGNORE , PASS etc...)
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

You can add new types with a module. For tcl scripts, you can use the "XTRA" type to add whatever you want. See setuser and getuser in tcl-commands.doc.
B
Bizzy

Post by Bizzy »

I know about the XTRA type, but I mean about a completly new info type, for example to add a multipale infot type(like HOSTS) that his entery will be for example "typi".
So when i'll do "setuser <handle> typi hello"
and "setuser <handle> typi bye" it will add "hello" and "bye" to the userfile for the handle I entered.
Is it possible to do it?
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Yes and no.

The functions to deal with this are provided by C.

It involves creating a function to take th einput and store it when the data is read, and function that will create the output format when writing to the userfile.

This isn't, and will doubtfully ever be provided in Tcl.
B
Bizzy

Post by Bizzy »

oh....
ok 10x for the help...
Locked