| |
| |
| |
|
Page: 1 2 3 4
Comments:
<0> yoe, i can't just input it - it adds {} around the 0; <0> like i said <0> :( <1> utimer 30 "the:counting * * * *" called the:counting only 1 time <2> yeah, you have to start it in the proc again <1> ah, ok <2> it's a one-time-timer <2> bnovc: then just escape the ; <2> \; <0> how! <0> :( <0> i thought that string map would do it <2> \; <0> return [string map {\\ \\\\ \| \\| \[ \\[ \] \\] \{ \\{ \} \\} $ \\$ \` \\` \' \\' \" \\"} $str] <0> ***umed that would do it but i guess not <2> as you can see ; isn't in that
<0> return [string map {\\ \\\\ \| \\| \[ \\[ \] \\] \{ \\{ \} \\} $ \\$ \` \\` \' \\' \" \\" ; {;}} $str] <0> like that? <2> noo <0> bla i hate tcl <0> it only exists to frustrate me <2> ;string map {";" "\;"} "test;" <3> yoe: #642 (311 clicks) Tcl: test; <2> ;string map {";" "\\;"} "test;" <3> yoe: #643 (303 clicks) Tcl: test\; <2> altho, one \ would be enough.. <0> string map {";" "\\;" \' \\'} <0> so use that to escape the query? <2> string map {";" "\;" "'" "\'"} $var <0> ok thanks ill try it <2> tcl's output is just escaping the variables so you won't see the extra \ in here <0> you cut off the paste site <2> [04:50:03] * yoe changes topic to 'Don't ask to ask | HELP channel for Eggdrop Tcl-scripting, not a DO-IT-FOR-YOU channel | No 3rd party | Paste to http://paste.anbcs.com/ | RTFM' <2> ? <0> depends on your server <4> * yoe changes topic to 'Don't ask to ask | HELP channel for Eggdrop Tcl-scripting, not a DO-IT-FOR-YOU channel | No 3rd party | Paste to http://' <0> some servers have shorter topic limits <0> yep <0> servercentral stops there <0> return [string map {";" "\;" "'" "\'"} $str] <0> does exactly the same thing as before - {0;} <2> there must be some weirdo things in your script making that <2> lemme see your mysqlexec-line <0> ok one second <0> http://bnovc.com/triggers.tcl <0> i tried at least 50 tutorials on string replacing as well <0> which either syntax errored my script, broke my string, or did nothing at all <2> so it's a trigger named 0;? <0> no <0> % 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. <0> its named * <0> the rest is the value <2> ;puts $inputLine <3> yoe: #671 (stdout) % 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. <2> ;puts [join $inputLine] <3> yoe: #672 (stdout) % 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. <2> hm <2> duuh <2> ;split $inputLine <3> yoe: #675 (208 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. <2> that's why <0> what is why? the join? <2> ;lrange $inputLine 2 end <3> yoe: #678 (179 clicks) Tcl: * 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. <2> set temp [split $text] <2> set trigger [addslashes [lindex $temp 1]] <2> set message [addslashes [lrange $temp 2 end]] <3> yoe: #680 (433 clicks) Tcl: hi <3> yoe: #681 (430 clicks) Tcl: this is a test <2> you split it.. <2> ;puts $inputLine <3> yoe: #683 (stdout) % 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. <0> is there a better way i should do it <2> ;puts [split $inputLine] <0> to get them into pieces <3> yoe: #685 (stdout) % 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.
<2> well, if you're just going to grab the first word, the split is unnecessary <2> ;lindex $inputLine 0 <3> yoe: #688 (143 clicks) Tcl: % <2> ;lindex $inputLine 1 <3> yoe: #689 (145 clicks) Tcl: add <2> ;lrange $inputLine 3 end <3> yoe: #690 (164 clicks) Tcl: 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. <2> ;lrange [split $inputLine] 3 end <3> yoe: #691 (247 clicks) Tcl: 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. <2> no diff <0> so like set trigger [lindex $text 0] <2> except for escaping <2> yeah <2> just remove the "set temp [split $text]" <0> or change it to set temp text <0> or change the ones below <2> sure.. <2> lol, this is not so necessary..: <2> if { $msg == "" } { <2> set msg "" <2> } <2> =) <0> ya i dont remember why i had that there <0> i think i must have changed one of the lines over time <2> ;time <3> yoe: #705 (265 clicks) Tcl error: wrong # args: should be "time command ?count?" <2> time <2> damn zanpaktou <2> zanpaktou clock format [clock seconds] <3> <4.0ms> Mon Jan 16 05:03:09 +0100 2006 <2> ugh <0> ok works w/o the split now <0> thank you <2> time to sleep.. <2> np <2> glad i could help in this early/late hour.. ;) <2> nn <0> 10:05pm <0> :) <0> good night though <5> hi all, is anyone awake? I'm trying to write a script but it's not working. I was hoping someone could take a peek at what i have (uploaded as txt file to a web server) and help me with it? <5> it is heavily commented and isn't very long yet <6> [PASTE] Aakanaar just pasted code at http://paste.anbcs.com/3880 (It's not working. Currently something about list item in quotes followed by "]") <5> found the paste page.. can anyone help? give it a quick looking over? <7> set title [string tolower [lindex [mysqlescape $text] 0]] <7> set text [lrange [mysqlescape $text] 1 end] <7> that is syntax correct, no? <7> or should i mysqlescape the new strings after its been split up <8> hi, is there any solution ,how to prevent time drifts when executing applications that take time and i want to wait for result? <8> for example i want to run wget on a big file (cca 5min of downloading) and when finnished, bot say to channel it is finnished <8> but this never happens, because after few mins.. it gets disconnected from irc :/ <9> i think bgexec is what u should look into <8> thanks, ill take a look <10> Isn't using [open "|prog" r] and setting a fileevent just as good? <9> doesnt that block too ? <10> no.. <9> what's the point in bgexec then ? <10> I dunno. <8> seems like bgexec is easier way to use filepipes, it handles all this fconfigure and fileevent in good working proc <9> its not like that's hard to do urself :) <11> isn't bgexec for like eggdrop 1.1.5? <2> zanpaktou source scripts/livestats.tcl; renderStats #eggtcl <3> <22.0ms> http://joe.stabilt.se/eggtcl.html <9> i cant quite figure out the times <2> should be 'getchanidle' but its waaay off <9> a bit <11> heh <11> kind of pointless statistic <2> typ <2> yup* <11> would be more interesting to see a pisg or mircstats style one <2> well, my point was to just list which users that where active.. ;) <11> I see <12> How can you make an eggdrop rememver something?
Return to
#eggtcl or Go to some related
logs:
#stocks soloteens #worldcup #politics #beginner #freebsd .22swift rifles
macbook pro dvi to rgb get stdlib.h for redhat #linux-noob
|
|