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 312 matches

by spock
Tue Feb 22, 2005 12:13 pm
Forum: Archive
Topic: script that will reply custom text when command is unknown
Replies: 8
Views: 6976

bind pubm - "% !*" pubm:check proc pubm:check { n u h c t } { if {[lsearch -exact $::bl [lindex [split $t] 0]]!=-1} { return } putserv "PRIVMSG $c :please type in !help for available commands" } proc mbl {} { set ::bl {} foreach b [binds pub*] {lappend ::bl [lindex [lindex $b 2]...
by spock
Sun Feb 20, 2005 12:34 pm
Forum: Archive
Topic: Security, don't deop unkown user...
Replies: 2
Views: 1403

![validuser<space>[finduser "$victim!*@*"]]

you should have been able to spot this yourself
by spock
Sun Feb 20, 2005 12:32 pm
Forum: Archive
Topic: Timed voice dont work...., the egg voices all user onjoin!
Replies: 6
Views: 3715

utimer 120 [list autovoice $nick $chan]

(can also use "timer 2")
by spock
Tue Feb 01, 2005 12:41 pm
Forum: Archive
Topic: botnet script....
Replies: 6
Views: 3092

join the whole net and chanset +inactive on the bots you dont want in there (assuming speednet doesnt share chanfile)
by spock
Sat Jan 29, 2005 8:26 pm
Forum: Archive
Topic: blank spaces in DCC CHAT
Replies: 6
Views: 2542

format "<spaces here> %s" "your text"
or
format "<spaces here> %s" $yourvar

but as gb mentioned, if your client is stripping spaces it dont matter how you're handing them to it
by spock
Tue Jan 25, 2005 8:48 am
Forum: Archive
Topic: need an kick counter for some 3x kick is ban
Replies: 8
Views: 4273

proc checkkc n { if {[info exists ::kc($n)]} { unset ::kc($n) } { putlog "dontexist: shouldnt happen" } } proc checkt { n w } { foreach t [timers] { if {[string equal [lindex [lindex $t 1] 0] "checkkc"] && [string equal [lindex [lindex $t 1] 1] $n]} { killtimer [lindex $...
by spock
Mon Jan 24, 2005 1:31 pm
Forum: Archive
Topic: first/last line
Replies: 4
Views: 2823

set somestring "FIR\nrandom1\nrandom2\nrandom3\nFIRST\nrandom4\nrandom5\nrandom6\nLAST\nrandom7\netc" bind pub n .s pub:s proc pub:s { n u h c t } { if {[llength [split $t]] != 2} { puthelp "PRIVMSG $c :usage: .s <first> <last>" ; return } if {[set result [s [lindex [split $t] 0...
by spock
Mon Jan 24, 2005 9:32 am
Forum: Archive
Topic: first/last line
Replies: 4
Views: 2823

proc s { w f l } { set fp [open $w r] ; set d [split [read $fp] \n] ; close $fp set r [lrange $d [expr {[lsearch $d $f]+1}] [expr {[lsearch $d $l]-1}]] } % s <file> FIRST LAST text4 text5 text6 obviously you'd also check to see if file exists/readable (if you're reading from a file), and you should...
by spock
Sun Jan 23, 2005 4:46 pm
Forum: Archive
Topic: bot not banning users when kicked :(
Replies: 1
Views: 1183

search the tcl archive for "flood ban" or something appropriate, or read up on "bind flud" in tcl-commands.doc if you're up for it. and for op/unban/limit/key requests, again, search the forum or the tcl archive. if you want to make it yourself, read up on the "need-* chanse...
by spock
Sun Jan 23, 2005 4:32 pm
Forum: Archive
Topic: need an kick counter for some 3x kick is ban
Replies: 8
Views: 4273

bind pub - "!test" pub:kctest proc pub:kctest {nick uhost hand channel arg} { global kc if ![info exists kc([set n [string tolower $nick]])] { set kc($n) 1 putquick "PRIVMSG $channel :$nick this is kick $kc($n)" } elseif { $kc($n) == 2 } { incr kc($n) putquick "PRIVMSG $cha...
by spock
Sun Jan 16, 2005 1:23 pm
Forum: Archive
Topic: correct use of 'bind mode'
Replies: 6
Views: 2361

works for me. try adding a "flushmode $chan" (shouldnt really be needed) or use putserv "MODE $chan -o $victim" instead of pushmode as for devoicing itself when it wont allow itself to be opped, that wont work unless it's halfopped (or some other funky stuff) edit: speelingg broken
by spock
Sun Jan 16, 2005 12:53 pm
Forum: Archive
Topic: correct use of 'bind mode'
Replies: 6
Views: 2361

$var == "whatever" <- note the ""

other than that, i would suggest using [isbotnick $victim]
by spock
Sat Jan 15, 2005 4:50 pm
Forum: Archive
Topic: Help howto get this work
Replies: 5
Views: 1902

post the code that is not working, maybe someone will help you if you're lucky.

i dont want to do all the work for you (aside from a friendly first time)
by spock
Sat Jan 15, 2005 4:48 pm
Forum: Archive
Topic: Replacing in a variable a word by a value of another var..
Replies: 2
Views: 1294

Code: Select all

set var3 [string map [list "Salut" $var_replace] $var1]
by spock
Sat Jan 15, 2005 3:46 pm
Forum: Archive
Topic: Jump to line
Replies: 3
Views: 1469

set data "RANDOM0\nConstant\nRANDOM1\nRANDOM2\nRANDOM3\nRANDOM4\nRANDOM5" if {[set a [lsearch -exact [set b [split $data \n]] "Constant"]] != -1} { putlog "constant: [lindex $b $a]" putlog "random4: [lindex $b [expr $a + 4]]" } produces: constant: Constant ra...