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

by TsT
Sun Sep 07, 2003 4:55 am
Forum: Archive
Topic: Too many open files.
Replies: 4
Views: 1307

Re: Well, there is a close...

[...] while {![eof $onmsg]} { gets $onmsg msg1 set tempmsg [split $msg1 " " ] set tempmsg0 [lindex $tempmsg 0] switch -- $tempmsg0 { 1 - 2 - 3 - 4 - 5 { set msg [string trimleft $msg1 $tempmsg0] } "" {close $onmsg ; return 1} } puthelp "NOTICE $nick :$msg " } close $on...
by TsT
Fri Aug 29, 2003 12:18 pm
Forum: Archive
Topic: Banner Script
Replies: 3
Views: 932

putserv "PRIVMSG $bchan "Global Message from $nick: $misc1end"
should be:

Code: Select all

putserv "PRIVMSG $bchan :Global Message from $nick: $misc1end"
by TsT
Sat Aug 09, 2003 11:26 am
Forum: Archive
Topic: bind time question
Replies: 2
Views: 754

Re: bind time question

Code: Select all

bind time - "00 00 * * *" clean:pub
by TsT
Mon Jul 28, 2003 5:43 am
Forum: Archive
Topic: Removing Spamming bots with strange nicks
Replies: 43
Views: 17397

It's true, I got proc1 is 3x more slower than proc2:
% time proc1
306 microseconds per iteration
% time proc2
103 microseconds per iteration
BUT there are not really equivalent because proc1 provide a matching result...
proc2 need string match to check if data is valid :P
by TsT
Mon Jul 28, 2003 5:20 am
Forum: Archive
Topic: Competition
Replies: 35
Views: 11386

And script can be perfect at the 1st time !
scripts needs update...

so i think keep the 1st version sent is little stupid :D
by TsT
Sun Jul 27, 2003 10:06 am
Forum: Archive
Topic: Removing Spamming bots with strange nicks
Replies: 43
Views: 17397

hehe TsT, the regexp lover :) I'm sorry to dissapoint you but regexp is slow, if you care about every millisecond then you should avoid regexp whenever possible I just saw this for the fun. Regexp is sometime more usefull to split lot of part of one string in one line, like: set nickuserhost "...
by TsT
Sun Jul 27, 2003 9:49 am
Forum: Archive
Topic: Competition
Replies: 35
Views: 11386

Are there not limit of size ?

can we send multiple file scripts ?
like:
- one script loader
- some tcl (librairies)
- some tcl (modules of this tcl)

what are the criteria to decide what script is the best ?
by TsT
Sat Jul 26, 2003 6:59 am
Forum: Archive
Topic: Removing Spamming bots with strange nicks
Replies: 43
Views: 17397

Papillon wrote:

Code: Select all

set ident [lindex [split $uhost @] 0]
Or with regexp:

Code: Select all

regexp {^([^@]+)} $uhost _ ident

TsT, the regexp lover.
by TsT
Sat Jul 26, 2003 6:52 am
Forum: Archive
Topic: Need Some Coding Help.
Replies: 13
Views: 2354

Papillon wrote:you can change

Code: Select all

if {$vict == $botnick} {
to

Code: Select all

if {[string equal -nocase $vict $botnick]} {
You can also change to

Code: Select all

if {[isbotnick $vict]} {
and remove the

Code: Select all

global botnick
by TsT
Mon Jul 21, 2003 7:53 am
Forum: Archive
Topic: Removing Spamming bots with strange nicks
Replies: 43
Views: 17397

ppslim's solution is very good actually. if u collect all their hosts, u can get rid of them. anyway, in irc there is a script which bans on random nicks, I don't know if it can be done using tcl (bu I think it can). its like this (in mIRC) : if ( a !isin $nick ) && ( e !isin $nick ) &&...
by TsT
Tue Jun 10, 2003 2:52 pm
Forum: Archive
Topic: ASCII ban
Replies: 12
Views: 3540

Why not use global variable? like: # add a user proc my_adduser {mask} { global my_users set my_users([string tolower $mask]) "" } # return "" = not found # else return the 1st mask which matched proc my_searchuser {uhost} { global my_users set uhost [string tolower $uhost] forea...
by TsT
Sat May 31, 2003 1:40 pm
Forum: Archive
Topic: XML-RPC for eggdrops?
Replies: 2
Views: 731

can i ask waht is XML-RPC ?
by TsT
Mon May 26, 2003 6:10 pm
Forum: Archive
Topic: mysql driver for tcl
Replies: 4
Views: 1063

or
- mysqltcl package
- tcl-sql lib
- ...
by TsT
Sat May 24, 2003 5:54 pm
Forum: Archive
Topic: splitting variable text over mulitple lines???
Replies: 2
Views: 1194

Or:
set var {bla bla\
bla}
(one line)
by TsT
Wed Mar 26, 2003 7:50 am
Forum: Archive
Topic: Newbie problem with eggdrop in debian
Replies: 9
Views: 3629

nitrandir wrote:and by the way ...
apt-get install doesn`t install any new packages...
apt-cache search tcl|grep ^tcl

apt-get install tcl8.4