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.

someone help me plz

Old posts that have not been replied to for several years.
Locked
g
gabber

someone help me plz

Post by gabber »

i am trying to get a simple loop in this tcl but it just outputs the text once and not 5 times.

Code: Select all

proc test {nick uhost hand chan arg} {global first up varg channel name1 name2                         

set first [lindex $arg 0]    
set up [lindex $arg 1]     
set varg [lindex $arg 2]
set channel "#test"    
set name1 "bla"   
set name2 "buh"     
for {set i 0} {$i < 5} {incr i} {

putserv "PRIVMSG $channel :$first $up $varg"          
 putserv "PRIVMSG $channel :$name1 $up $varg"          
 putserv "PRIVMSG $channel :$name2 $up $varg"          
    }
}

bind pub - !start test 
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

This is because of the way eggdrop prevents wated bandwidth.

See your config file, for the double- settings, related to allowing repeated text int he queue.
g
gabber

Post by gabber »

thx a lot that was it. i was really going nuts.
Locked