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.

reading from ini files

Help for those learning Tcl or writing their own scripts.
Post Reply
A
Aenei
Voice
Posts: 1
Joined: Tue Jan 10, 2006 6:57 pm

reading from ini files

Post by Aenei »

I am currently porting some scripts from mIRCscript format into an eggdrop bot. I have come across some of the script which uses an ini file, and I am trying to work out if ini files are supported by eggdrop. I know that tcl 8.2 supports ini files with the command inifile (see http://tcllib.sourceforge.net/doc/ini.html for more) but I don't know whether this means my eggdrop will. Has anyone got any experience in using ini files with eggdrop and can offer me some handy hints?

I'm reasonably experienced in scripting/programming in general, I just haven't done much eggdrop or tcl before, so somewhere between spoonfeeding and a bit more complicated seems like a good level to pitch for. Thanks in advance
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

windrop will support that, eggdrop on Linux/UNIX system will not
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

I dont see the reason why that tcllib would only work on windows. Its a tcllib which source can be executed on any TCL enviroment. I looked into ini.tcl and could find only common TCL commands.
So as long that lib is present you can use it. If it isnt present, install tcllib from the page you posted :P.
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

yeah, apparently that's the case

I thought it might be somehow using win32 ini APIs, I was wrong
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
Post Reply