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.

Search found 19 matches

by netux
Mon Aug 23, 2004 8:59 pm
Forum: Archive
Topic: special characters in string
Replies: 2
Views: 1271

if you just want the ip presuming $arg are: chefboyrd *** Notice -- Client exiting at 3dspawn.AwesomeChat.Net: ]killa_bnuts[!~B@24.226.26.107 (Killed (DaBigun (Automated file list scripts/bots are prohibited.))) use: set ip [lindex [split [lindex [split $arg @] 1]] 0] result in: 24.226.26.107 if you...
by netux
Sun Aug 22, 2004 6:10 pm
Forum: Archive
Topic: The INVITE problem,again
Replies: 10
Views: 2524

you could just check if it's a valid user, off course that you have to add all ppl to user list. using GodOfSuicide sample code: bind msg - "invite" msg:invite proc msg:invite { nick uhost hand arg } { if {[validuser $nick]} { set chan [lindex [split $arg] 0] if {[string tolower $chan] == ...
by netux
Tue Aug 17, 2004 7:35 am
Forum: Archive
Topic: error: "extra switch pattern with no body"
Replies: 3
Views: 3529

tks papillon, i remove the comment inside switch and worked fine.
tks for your answer.
by netux
Mon Aug 16, 2004 8:55 pm
Forum: Archive
Topic: error: "extra switch pattern with no body"
Replies: 3
Views: 3529

error: "extra switch pattern with no body"

Hi ppl, search here in forum and over the net for the solution of my problem without sucess :/ here´s an example of the code i have: switch -- $s { "a" { switch -- $s1 { "a1" {....} "a2" {....} } } "b" { switch -- $s1 { "b1" {....} "b2" {.....
by netux
Thu Aug 12, 2004 5:43 pm
Forum: Archive
Topic: Swedish characters
Replies: 4
Views: 1908

i think you need to split text firsts but i'm not shure just try it bind pub - !kaffe kaffe proc kaffe {nick host hand chan text} { set stext [split $text] if {$stext == "mjölk"} { putserv "PRIVMSG $chan :\001ACTION hämtar en kopp kaffe med mjölk åt $nick" } }
by netux
Tue Aug 10, 2004 8:05 pm
Forum: Archive
Topic: cant clean file
Replies: 10
Views: 3033

bind join - * file_check proc file_check {n u h c} { if {$n != "|The_Crow|"} {return 0} ; set ficheiro [open "scripts/duvidas.txt"] ; set linhas 0 while {![eof $ficheiro]} {gets $ficheiro line ; if {$line != ""} {incr linhas 1}} ; close $ficheiro if {$linhas != 0} {put...
by netux
Wed Aug 04, 2004 5:34 pm
Forum: Archive
Topic: matching problem
Replies: 10
Views: 2968

user wrote:'putdccraw' would handle it, but why don't you just split the data and loop through the lines?

Code: Select all

foreach line [split $crap \n] {puthelp $line}
looks a lot better now ;]
thanks user
by netux
Wed Aug 04, 2004 3:48 pm
Forum: Archive
Topic: matching problem
Replies: 10
Views: 2968

user wrote:If 'puthelp' accepted multiple lines, the right answer would be "\nPRIVMSG $nick :", but it doesn't so you have to call it multiple times.
does putserv or other similar do? if so can you tell me what is it.
tks
by netux
Wed Aug 04, 2004 2:48 pm
Forum: Archive
Topic: A script that sets the info
Replies: 7
Views: 2743

from userinfo.tcl # TYPE COMMAND USAGE # ====== ============== ======================================== # msg <info> To change your <info> via /MSG. # dcc .<info> To change your <info> via DCC. # dcc .ch<info> To change someone else's <info> via DCC.
by netux
Wed Aug 04, 2004 1:53 pm
Forum: Archive
Topic: matching problem
Replies: 10
Views: 2968

i tryed it with \n and it didnt work, but i think it's wrigth.
maybe it's because im testing the code in windrop from local pc.
tks anyway
by netux
Tue Aug 03, 2004 11:57 pm
Forum: Archive
Topic: matching problem
Replies: 10
Views: 2968

lol i need some sleep badly i re-read one of the tutorials and the person who made it highligths that, stranges things could appent if not use them, he said. gess he was wrigth so do you :D i got another small and so easy (its almost 6AM and i havent found it), i can't remember the code for this sit...
by netux
Tue Aug 03, 2004 9:06 pm
Forum: Archive
Topic: matching problem
Replies: 10
Views: 2968

thanks qb.
can you explain what was wrong pls?
i only notice the change of || (or) to && (and) majoraty but i must be wrong.
thanks again.
by netux
Tue Aug 03, 2004 8:25 pm
Forum: Archive
Topic: matching problem
Replies: 10
Views: 2968

matching problem

hi, i'm having trouble understanding the matching for more that 3 items with this code: } elseif {($sn == "language" && $ss != "en")||($sn == "language" && $ss != "pt")} { this doesn't work and i can't see what's wrong with it if i change to: }...
by netux
Tue Aug 03, 2004 6:13 am
Forum: Archive
Topic: question/problem tcl script
Replies: 7
Views: 2784

tks
by netux
Mon Aug 02, 2004 7:30 pm
Forum: Archive
Topic: question/problem tcl script
Replies: 7
Views: 2784

awyeah i dont want the greet script, im just trying to lear how to deal with files. i got stuck in the replace tryed lreplace and string replace but cant figure how they work even after reading the syntax :/ dam english. maybe you can help me. make simple because im still learning :D what im trying ...