@# Quotes DB     useful, funny, interesting





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



Comments:

<0> hi all
<0> do you know how i can connect eggdrop on 2 different server ?
<1> u cant
<1> use 2 eggys instead :)
<0> it's not possible ?
<1> i've heard of a patch
<0> hum... ok
<0> thanks for the information
<1> but why not just run 2 bots ?
<2> ah, that must be the reason why people always want to connect eggdrop to psybnc, i never got why one would want to do that
<0> yes, i think i will do that =)
<1> same stupidity
<3> lol
<4> hello, how can i get extra debug info from my tcl scripts ?
<4> i wanna see which lines are erroring if possible
<5> bt: $::errorInfo always contains the last Tcl error.



<6> if it's for the sake of getting around background process restrictions it's kind of pointless
<6> most shell providers considers 1 irc connection 1 process
<4> FireEgl, i dont know how to access that im just a beginner im afraid
<4> [22:44] Tcl error [pub:add]: wrong # args: should be "set varName ?newValue?"
<4> i swear i cant put my finger on the error tho
<7> ;set test test test
<8> yoe: #519 (269 clicks) Tcl error: wrong # args: should be "set varName ?newValue?"
<7> forgot ""?
<4> well, theres a few set statements in the proc
<4> hoping i could find out which line
<5> bt: type this on your bot: .set errorInfo
<2> if you have only a single proc, the shell ****s, there are cheap ones with at least 3 ..
<4> FireEgl, THANKS!
<4> hmmm
<4> i think its cos i put comments at end of line
<4> whats correct way to do this ?
<6> ;#comment
<8> Pixelz: #529 (137 clicks) Tcl:
<4> # ? thats what i have
<6> ;
<8> Pixelz: #531 (109 clicks) Tcl:
<6> set foo bar ;#comment
<8> Pixelz: #532 (134 clicks) Tcl: bar
<4> ;# ?
<8> bt: #533 (106 clicks) Tcl:
<6> right
<4> thatll teach me to comment my code eh
<4> a pure comment line is that okay to start with just # ?
<9> http://pastebin.com/507526 why would i get can't read "invites": no such variable while executing "puts $file $invites" (file "scripts/counter.tcl" line 68)
<9> i think i changed something on accident
<10> ColdFyre you have read it inside the proc
<10> because it seems that youre setting it global
<10> ah nvm just saw..
<9> yes, it has worked
<9> something was just changed and i cant figure what
<10> that it was inside of the proc
<9> well now
<9> somehow that extra else got at the end
<7> zanpaktou source scripts/livestats.tcl; renderStats #eggtcl
<8> <23.0ms> http://joe.stabilt.se/eggtcl.html
<9> bind time - "1 * * * *" the:counting
<9> is there something really wrong there that makes it not call that
<11> [PASTE] bnovc just pasted code at http://paste.anbcs.com/3879 (It inserts but I never get a msg on irc - it says invalid command &quot;-1&quot; in consol)
<7> bnovc: [mysqlsel $sqlhandle "replace into eggy_autoresp (Atrigger, Message, Creator) values('$trigger', '$message', '$nick')"] <- don't use [] without settings it to a variable, or in a if-statement or equal.
<7> setting
<7> *
<12> alright
<12> one other question - my input seems to be changing without my doing so
<12> the $message variable contains a 0; and it changes to {0;}
<12> any idea why that would be?
<7> because ; will "break" a command-line in tcl, and {} is to escape that
<7> ;return test;return test2
<8> yoe: #559 (143 clicks) Tcl: test
<7> {;return test;}return test2
<7> ;{;return test;}return test2
<7> mh
<7> anyway
<7> ;puts test;puts test2
<8> yoe: #563 (stdout) test
<8> yoe: #563 (stdout) test2



<7> ;puts test{};puts test2
<8> yoe: #564 (stdout) test{}
<8> yoe: #564 (stdout) test2
<7> ;puts test{;}puts test2
<12> um so how do i fix it?
<8> yoe: #565 (stdout) test{
<7> <-tired
<8> yoe: #565 (2541 clicks) Tcl error: invalid command name "}puts"
<12> do i have to escape the semicolon?
<7> {} escapes it, that's why it's "changed"
<12> well i dont want it escaped
<12> its inserting into the db as {0;}
<12> and i want it as normal 0;
<7> ;set test {\{0;\}}
<8> yoe: #573 (152 clicks) Tcl: \{0;\}
<7> ;set test {{0;}}
<8> yoe: #574 (139 clicks) Tcl: {0;}
<12> :\
<12> ;set test {0;}
<8> bnovc_: #575 (2377 clicks) Tcl error: invalid command name ":"
<7> use \{0;\}
<12> can i just do 0\{;\}
<9> i am overlooking something with bind time
<9> all i want to do is call a proc every 1 minutes
<7> ColdFyre: bind time -|- "*1 * * * *" the:counting
<7> uhm
<7> use utimer for tha
<7> t
<7> utimer 60 [list procName proc args here]
<12> return [string map {' '' ; \{;\}} $str]
<12> should that work to escape?
<7> bnovc_: use this:
<12> i dont really understand TCL's string replacing stuff
<7> ;info body addslashes
<8> yoe: #589 (310 clicks) Tcl: string map {\\ \\\\ \| \\| \[ \\[ \] \\] \{ \\{ \} \\} $ \\$ \` \\` \' \\' \" \\"} $text
<12> ok thanks ill give it a try
<7> ;proc addSlashes {text} { return [string map {\\ \\\\ \| \\| \[ \\[ \] \\] \{ \\{ \} \\} $ \\$ \` \\` \' \\' \" \\"} $text] }
<8> yoe: #591 (388 clicks) Tcl:
<7> ;addSlashes {[test] {bleh}}
<8> yoe: #592 (636 clicks) Tcl: \[test\] \{bleh\}
<7> ColdFyre: add "utimer 60 the:counting" as the last line in your the:counting-row, and this to the last line in your script:
<7> if {![string match *the\:counting* [utimers]} { the:counting }
<12> yoe, that still breaks it the same way
<12> You should add * \{ margin: {0;} padding: {0;} \} to the top of your CSS files
<12> should be * { margin: 0; padding: 0 }
<7> then use: {{0;}}
<12> so the string map the bot just told me is wrong?
<12> return [string map {\\ \\\\ \| \\| \[ \\[ \] \\] \{ \\{ \} \\} $ \\$ \` \\` \' \\' \" \\"} $str]
<7> no..
<12> well, i used that
<7> yeah, the mysql added the \{ instead of the {.. so use {{0;}} instead, that'll be {0;} if you don't use "" around it.. "{0;}" should work also
<7> lol
<7> just saw that you DIDN'T want them there.. ;)
<12> that's good because i keep getting more and more confused
<12> ;)
<12> was wondering why i should add that
<7> well, just join it then
<7> ;puts $test
<8> yoe: #608 (stdout) {0;}
<7> ;puts [join $test]
<8> yoe: #609 (stdout) 0;
<9> holy god it works :-D
<7> ColdFyre: yeah, it should. :)
<12> yoe...here is what i'm inputting to the bot (and splitting it for the part after the *)
<12> % add * You should add * { margin: 0; padding: 0; } to the top of your CSS files to ensure browser compatibility. Often browsers have differing default margins and padding. This also helps create intended effects.
<12> i just want it to insert like that
<7> ;set inputLine {% add * You should add * { margin: 0; padding: 0; } to the top of your CSS files to ensure browser compatibility. Often browsers have differing default margins and padding. This also helps create intended effects.}
<8> yoe: #615 (161 clicks) Tcl: % add * You should add * { margin: 0; padding: 0; } to the top of your CSS files to ensure browser compatibility. Often browsers have differing default margins and padding. This also helps create intended effects.
<7> that would be enough?
<7> just input the variable into the mysql
<9> yoe: it invoked it once after the imteout but not again
<9> timeout rather
<7> saying?
<12> yoe, i can't just input it - it adds {} around the 0;


Name:

Comments:

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






Return to #eggtcl
or
Go to some related logs:

#openbsd
chaosklan
#delphi
baadshah Efnet
bari italy hookers 2006
#beginner
#beginner
keepnick chatnet
#beginner
bc bud not smell



Home  |  disclaimer  |  contact  |  submit quotes