| |
| |
| |
|
Page: 1 2 3
Comments:
<0> and what's your error? <1> can i paste the error here? <0> as long as it isn't huge, yea <1> what im trying to do, is parse the website in the script, and match each line with "GOAL" in it <2> j #tcldump <0> haha
<0> (at smokey) <0> void^: hold up <1> k <2> damn window load lags ;x <2> i need to find someone with ipfw skills ;/ <0> tihi <0> iptables? i might be able to help.. gonna help void^ first. ;) <2> nah, ipfw i need to see why its so strict. <0> void^, <0> regexp {<!--Start of stat table-->(.*)<!--End of stat table-->} $body -> data <0> foreach {match goal} [regexp -all -inline -nocase -- {goal: (.*?)\n} $data] {puthelp "PRIVMSG $channel3 :$goal" } <0> try that <1> all i can say is thankyou <1> youre a fcuking legend <1> much appreciated yoe <0> hehe, you're welcome <1> quick question, whats the best online reference material for things like this? <0> www.tcl.tk <0> wiki.tcl.tkk <0> tk* <1> cool <1> again, many thanks mate <0> np
<0> btw, to remove all html-characters from your line, just set this instead of PRIVMSG $channel3 :$goal -> PRIVMSG $channel3 :[regsub -all -- {<.+?>} $goal {}] <0> html-tags* <1> when i add that, i get : <1> wrong # args: should be "regsub ?switches? exp string subSpec varName" <1> while executing <1> "regsub -all -- {<.+?>} $goal {}" <0> ;regsub -all -- {<.+?>} "<html>test</html>" {} <3> yoe: #749 (270 clicks) Tcl: test <0> did you wrap [] around? <1> foreach {match goal} [regexp -all -inline -nocase -- {goal: (.*?)\n} $data] {puthelp "PRIVMSG $channel3 :[regsub -all -- {<.+?>} $goal {}]" } <1> thats how i interpreted what i was sposed to change <0> zanpaktou set data "GOAL: test 1-0 nottest\nGOAL: free 0-3 heh\n"; return ok <4> <1.0ms> ok <0> zanpaktou foreach {match goal} [regexp -all -inline -nocase -- {goal: (.*?)\n} $data] {puthelp "PRIVMSG #eggtcl :[regsub -all -- {<.+?>} $goal {}]" } <4> test 1-0 nottest <4> free 0-3 heh <0> should work.. <5> yoe is there coming up to your mind about how to bind the 'MODE' thing? <5> i've been trying and googling, but found nothing <0> sorry.. i guess you could modify the module, and make your own bind.. like bind realraw -|- * proc ;) <0> i think it's hiding the flags, as we discussed earlier <5> which means i have to learn c at least :< <0> might not be that hard.. i dunno :] <5> or how about posting the question on a forum? someone may do it ":P <1> hmmm, still not working...maybe i need to update tcl or something <1> thanks for your help yoe <0> np
Return to
#eggtcl or Go to some related
logs:
#freebsd kozmonautix inc #politics #fedora fufu adware #windowsxp #beginner #computers #linux-noob abraham kill me your son
|
|