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

by stdragon
Fri Sep 22, 2006 10:06 pm
Forum: Scripting Help
Topic: PING script
Replies: 5
Views: 4293

Code: Select all

 putserv "privmsg [lindex $moo(arg) :\001PING [clock clicks -milliseconds]\001" 
That's the only obvious error I see so far. When you tested $moo(arg) did you get an error (undeclared) or was it just the wrong value (e.g. empty)?
by stdragon
Fri Sep 22, 2006 9:19 pm
Forum: Scripting Help
Topic: regexp doesn't identify what it should
Replies: 4
Views: 3499

if {[regexp -- {^\w+\s\s((\w+\s){1,16}).*$} $trimStr matchStr binaryLine]} { # Skipping headers if {[llength $binaryLine] < $newByteSkip} { ... cut ... set line [ eval "binary format [string repeat "H2" $rtpHdrSkip] $binaryLine"] There are some problems with this script. Up at t...
by stdragon
Sun May 21, 2006 4:35 pm
Forum: Other Topics
Topic: Freeze Eggdrop Development
Replies: 18
Views: 15959

Hey,

I just saw this thread and I think I fixed the problem you described. If there are more like that (anything related to ipv6) you could try compiling with ipv6 disabled (in ./configure).

If you run into any more problems post the error here and I'll take a look!
by stdragon
Sun Sep 04, 2005 10:24 pm
Forum: Archive
Topic: DoEvents() function in TCL like in Visual Basic ???
Replies: 7
Views: 6304

As demond suggested, the easiest way is to use another process via exec or open. This can even be another tcl script, so you can still use your existing code and mysql package if you want. On the other hand, why are you doing a wildcard search against hashes? Seems pretty weird. Since this is such a...
by stdragon
Tue Aug 30, 2005 9:03 am
Forum: Archive
Topic: 'chunked' transfer encoding
Replies: 7
Views: 5730

You could try changing all the "HTTP/1.1" strings to "HTTP/1.0" in the original script and seeing if that works.
by stdragon
Wed Jun 08, 2005 1:08 pm
Forum: Archive
Topic: server socket -> crash on rehash
Replies: 4
Views: 2368

You could use the "catch" command to catch the error. Or use "info exists" with another variable like "already_loaded" and set it when your script is loaded.
by stdragon
Mon May 09, 2005 6:08 pm
Forum: Archive
Topic: Some help on arrays
Replies: 8
Views: 2020

Maybe it's an argument to your proc? What De Kus said is really the only way this error could be happening.. you already have a variable called user and it's not an array.
by stdragon
Sun May 08, 2005 12:27 pm
Forum: Archive
Topic: bind time
Replies: 5
Views: 1657

[quote="De Kus" if { [clock format [unixtime] -format %a] != "Sun" } { return } sounds much shorter, easier and faster to me ^-^.[/quote] Two things... first he said "monday or tuesday" so maybe he wants to expand it to be if {$day != "Mon" && $day != ...
by stdragon
Sun May 08, 2005 12:46 am
Forum: Archive
Topic: bind time
Replies: 5
Views: 1657

No but you can bind to a specific time like 2am every day, then at the top of your proc put:

set day [lindex [split [clock format [clock seconds]]] 0]
if {$day != "Sun"} return

$day will be Sun, Mon, Tue, Wed, Thu, Fri, Sat so you can easily check to see if it's not the right day.
by stdragon
Fri May 06, 2005 5:01 pm
Forum: Archive
Topic: question about foreach/string match
Replies: 11
Views: 3423

Sky, how big is your list anyway? Unless it's really big I doubt this is much of an issue, but if it is, I'll try writing that thing I was talking about in tcl. Still might not make a whole lot of difference but it would be kind of fun.
by stdragon
Wed May 04, 2005 11:27 pm
Forum: Archive
Topic: question about foreach/string match
Replies: 11
Views: 3423

Tcl's lsearch won't work with -glob and -sorted at the same time. However you could write a search function that does that... it's kind of tricky because you have to split the list up based on where the wildcards are (beginning, middle, end). I was doing something like this for eggdrop 1.9.
by stdragon
Wed May 04, 2005 10:58 pm
Forum: Modules & Programming
Topic: editing server.c for performance issues ...
Replies: 7
Views: 15414

If you use putdccraw, it doesn't use the bot's queueing system, so there's no point changing the server code.

One thing you might try is combining lines into a single message, e.g.

putfast "$msg1\n$msg2\n$msg3"
by stdragon
Wed Feb 16, 2005 2:05 pm
Forum: Other Topics
Topic: proposal for new forum: script requests?
Replies: 16
Views: 8223

I agree people should write scripts for themselves but I also think people have valid excuses for not wanting to take the time to learn. At the same time, it's a fact that there are people in this community who would like to be paid once in a while. This isn't a religion, we're not saving the world ...
by stdragon
Tue Feb 15, 2005 11:23 pm
Forum: Other Topics
Topic: proposal for new forum: script requests?
Replies: 16
Views: 8223

proposal for new forum: script requests?

Hey, I too have noticed the increased number of requests for complete scripts to be written on the tcl forum. Maybe we should have a new forum for it, like Script Requests. People who post in there should be willing to trade something of value for the script to be written! Mods could move posts in t...
by stdragon
Wed Feb 09, 2005 11:55 am
Forum: Archive
Topic: Tcl error [joinproc]: invalid command name "}"
Replies: 13
Views: 4541

Hey your comments are messing things up... delete those lines instead of just adding a #. At least, that worked for me.