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
Thu Oct 04, 2001 6:29 am
Forum: Archive
Topic: add line :-o
Replies: 2
Views: 842

It sounds like you want to append to the file. So first of all, open the file in mode "a" instead of "w" (w overwrites it). Then, get rid of your foreach loop, because $nick is only one thing, not a list. So just puts $f $nick, not a loop for it.
by stdragon
Thu Oct 04, 2001 6:28 am
Forum: Archive
Topic: Actions?
Replies: 4
Views: 1085

Try something like this:

putserv "PRIVMSG #goats :01ACTION loves goats!01"
by stdragon
Wed Oct 03, 2001 7:09 am
Forum: Archive
Topic: Another Question
Replies: 5
Views: 1378

Maybe you have "-im" enforced in the channel settings? Try ".chaninfo #yourchan" on the partyline and looked at the "Protect modes" setting.
by stdragon
Wed Oct 03, 2001 7:06 am
Forum: Archive
Topic: vote kick script
Replies: 3
Views: 753

Cool, glad you got it. It's a pretty rough version, mainly because I wasn't too sure about what all should be included in it.

If you come up with any nifty ideas for it, let me know and I'll give it a shot.
by stdragon
Tue Oct 02, 2001 7:40 am
Forum: Archive
Topic: eggdrop queue
Replies: 8
Views: 1410

You might be able to use the command "putdccraw" like this:

set txt "PRIVMSG stdarg :I like goats toon"
putdccraw 0 [string length $txt] $txt

It's important to put the n on the end of your message! :smile:
by stdragon
Sun Sep 30, 2001 7:07 pm
Forum: Archive
Topic: checking if a var is a number or not
Replies: 2
Views: 1495

If you only want to tell if it's an integer (positive or negative) you could use this: proc is_integer {x} { if [catch {incr x}] {return 0} return 1 } For a number with a decimal point, you could do a combination of regexp and expr, i.e. check to see that the string is only "+-.[0-9]", the...
by stdragon
Sun Sep 30, 2001 5:21 pm
Forum: Archive
Topic: A TCL request...
Replies: 4
Views: 1741

heh thanks pp :)
by stdragon
Sun Sep 30, 2001 2:22 am
Forum: Archive
Topic: A TCL request...
Replies: 4
Views: 1741

You can try this, I made the command ".newhosts" because it's shorter than ".overwritehosts" heh. bind dcc m newhosts newhosts proc newhosts {hand idx text} { set parts [split $text] set target [lindex $text 0] set newhosts [lrange $text 1 end] if {![validuser $target]} { putdcc ...
by stdragon
Fri Sep 28, 2001 9:33 pm
Forum: Archive
Topic: High bit characters in Tcl & eggdrop
Replies: 19
Views: 2444

Maybe the problem is with the script. It sounds like your bot is able to join the channel with the weird letter in it, so it must be handling the utf correctly.
by stdragon
Fri Sep 28, 2001 1:36 pm
Forum: Archive
Topic: High bit characters in Tcl & eggdrop
Replies: 19
Views: 2444

Heh, I just tried to apply the patch to 1.6.6 and you're right, it doesn't work.

But I downloaded eggdrop1.6-current.tar.gz and the patch is already applied in there, so that should be all you need.

What errors did you run into with eggdrop1.6-current?
by stdragon
Fri Sep 28, 2001 12:05 am
Forum: Archive
Topic: A question about config code
Replies: 3
Views: 4286

Sure that will work. In bot.conf, just add the line:

source global.conf
by stdragon
Thu Sep 27, 2001 9:09 pm
Forum: Archive
Topic: High bit characters in Tcl & eggdrop
Replies: 19
Views: 2444

Maybe you have an incompatible version of patch. It was created with: diff - GNU diffutils version 2.7 And it applies correctly with my: patch 2.5.4 Try checking the manual page for patch ("man patch") and look for an argument you can pass to make it compatible with gnu patch, or try a con...
by stdragon
Wed Sep 26, 2001 11:12 pm
Forum: Archive
Topic: IP
Replies: 19
Views: 2628

Can you just comment out the set my-ip thing? Eggdrop binds to INADDR_ANY by default, so it should work on your internal network and from outside.
by stdragon
Wed Sep 26, 2001 10:25 pm
Forum: Archive
Topic: Regsubbing
Replies: 3
Views: 2451

You could do it with one regsub and a subst. It's probably better to just do 2 regsubs though :) set str "this is 1 test of 2 things" set keys(1) one set keys(2) two regsub -all 1|2 $str {${keys(&)}} str set str [subst $str] Just make sure your source string doesn't have special charac...
by stdragon
Wed Sep 26, 2001 10:13 pm
Forum: Archive
Topic: High bit characters in Tcl & eggdrop
Replies: 19
Views: 2444

The patch has been incorporated into eggdrop 1.6 (cvs version). I think 1.6.7 will be released in a few days, so it might be easiest to just wait for that. Or you can download the cvs version. You can get that at ftp://ftp.eggheads.org/pub/eggdrop/source/current/eggdrop1.6-current.tar.gz If you want...