@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3



Comments:

<0> quick question, why wont while { ![feof $fs] } { set data [ fgets $fs ]; ... } read the very last line from $fs ?
<0> sorry, eof, not feof
<0> and gets not fgets
<1> should work imho.. maybe the bug is in the piece you omitted after ";"
<0> could it be any problems with new lines? \n
<1> no, cant be... feof isnt \n
<1> eof*
<2> bad2da#
<2> try using...
<2> set file [open myfile r]; set read [read $file]; close $file ; foreach line [split $read \n] { ... }
<2> i've never had any problems with that
<0> thanks
<2> no problems
<0> I'm used to php, finding it quite hard to adjust to tcl. Havn't used it since as/400 tcl/tk
<0> oh, now I see, return actually breaks a while loop
<2> yes



<2> return exits the procedure
<0> ok, back to studying a few more hours worth of the manual I guess
<0> tcl has changed in the last 15 years :)
<2> =)
<0> thanks for your generous help
<2> no worries
<2> but maybe we can talk too
<3> has anybody ever scripted anything for psynbc?
<4> this is a TCL chan damit
<3> lol
<3> well there isn't a psybnc channel unfortunately
<5> hey
<5> there is a great bnc that uses tcl
<5> switch to that one and you can ask if someone scripted something for it in here :)
<5> http://sbnc.sourceforge.net/
<5> ;P
<3> i may
<3> heh
<3> Does it maintain your connectino while your not online?
<3> And does it support multiple networks
<5> yes
<5> and yes
<5> i gues
<5> i never used it
<5> you could write a bnc in plain tcl too
<3> Could anybody tell me why i'm getting this error -> http://paste.anbcs.com
<3> Anyone
<3> come on please
<4> why do u ask here ?
<3> it's tcl related
<4> no it isnt
<3> yes it is
<3> has something to do with syntax
<3> but i'm not sure what
<4> guess the flying pig flew away again
<3> could ya just tell me whats wrong
<4> not with that attitude
<3> what attitude?
<4> u didnt spend 1 sec looking at the script
<4> didnt read topic
<3> I asked in #eggtcl first
<3> and nobody answered
<3> then i asked in here
<3> fyi
<3> if it really matters to ya that much
<4> Tcl error [ident_id]: can't read "NickServ": no such variable <- can you read ?
<6> Tcl -> http://www.tcl.tk/man/tcl8.4/TclCmd/Tcl.htm
<3> bahh
<3> i pasted the wrong one
<3> hold on asecond
<4> do you know what a variable is ?
<4> you can also direct pastes to a channel here
<3> I know, i host paste.anbcs.com, but i asked for help on it in multiple channels
<3> set NickServ "NickServ"
<7> `Spike: #416 (166 clicks) Tcl: NickServ
<3> what's wrong with that?
<4> as SafeTcl said, nothing
<4> you already know global, do you know what it does too ? ;)
<4> you global alot, and use very little
<3> i kinda ripped this outta another script that had way too much for a simple nickserv identify
<3> i don't know tcl



<4> and im not here to fix that :)
<3> it had a bunch of variables, but i tried to remove as many as possible, i like things to just be simple and hard set. not vars everywher
<4> which is also in the topic, in the right chan
<3> nobodies around over there i don't think
<3> i don't need any of those globals
<4> sooo.... ?
<3> heh maybe that's what's wrong
<3> YES!
<3> thanks for your lack of help
<3> lol
<3> I figuredi t out on my own
<3> i guess you did mention it was the globals
<4> hehe
<4> anyways, use [string equal -nocase $var1 $var2] for comparing
<3> I wanted a simple nickserv identify script for a bot i was trying to put online, searched egghelp, every tcl on tehe for identifying to nickserv was 100+ lines
<4> you could put it in the init-server in the config file
<3> bahh it works now
<3> that's all i needed it to do
<3> NickServ (NickServ@services.)- P***word accepted - you are now recognized
<3> :)
<4> anyways, you have to start somewhere :)
<3> hahahh
<3> if i turn into a tcl coder now....
<3> the idea is to get this bot setup once and forall
<3> i'm never gonna touch an eggdrop again
<3> this one can just run forever
<4> i havnt touched any eggdrops for a long time now ;)
<3> i like to have one to keep logs
<3> and a couple other simple tasks
<3> makes life a little easier imho
<4> well, alot of those are configureable in the .conf file
<3> yeah i know
<3> mainly the other stuff it does is public commands for information and such
<3> not public commands that display publically
<3> but commands that the public can use
<8> hurm
<3> whatsup hest
<8> you seem to have gotten a hostile attitude lately, BL4DE
<8> im reading mail
<4> hest, i've been like this for years
<4> way before u knew me
<8> never noticed it
<4> if, i had changed it he would never know what was actully wrong
<8> maybe cuz you're soft on the inside
<4> hehe
<4> alot of the errors people have can be fixed if people read the error message 3-4 more times ;)
<3> but most people are trying to learn tcl
<3> i was just trying to get a bot to identify to nickserv
<3> i'll never use tcl or anything else
<3> lol
<4> see, if u dont, i lost a battle ;)
<3> well the sad part is that i probably will
<3> i just don't want to
<3> lol
<3> Always something that requires some random scripting lang
<4> mm :)
<6> [PASTE] hest just pasted code at http://paste.anbcs.com/4061 (none)
<8> BL4DE: point them in the right direction, don't bark at them
<8> and yes, they have a topic here but most of the people here are in #tcl too
<8> and his question was, as a matter of fact, Tcl
<8> the error was not within any eggtcl command, but just of string comparison
<3> why thank you hest
<8> what?
<8> the post?
<3> yup
<3> lol
<4> mark, copy, paste, leave
<8> no problem
<8> i havent given him a solution
<8> i wrote him a comment on how to fix it
<8> he'll have to look up the manual if he doesn't already now how to fix it
<8> it was a simple logical error that can happen to anyone
<4> but you are handing him the solution
<8> am i?


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #tcl
or
Go to some related logs:

mirc phillipines
#computers
#politics
#delphi
#delphi
linux DELL E173FP setup
#computers
#stocks
#flash
#beginner



Home  |  disclaimer  |  contact  |  submit quotes