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
Wed Nov 14, 2001 9:19 am
Forum: Archive
Topic: FTP script
Replies: 5
Views: 1193

If your shell has the command "ncftpls" then it's really easy. "ncftpls" is a program that lets you do a directory listing of an ftp site. You specify host, port, username, password, and it returns a code depending how things went. Read "man ncftpls" for info on the ret...
by stdragon
Wed Nov 14, 2001 9:09 am
Forum: Archive
Topic: need help with a script i made
Replies: 2
Views: 677

I'm feeling verbose right now so I'll really lay out some stuff here. For your search thing, here's some sample code. It opens up pubs.dat, reads all the lines, and searches for a line with the word "sheep" on it: set fp [open pubs.dat r] set lines [split [read $fp] n] close $fp set idx [l...
by stdragon
Mon Nov 12, 2001 9:59 pm
Forum: Archive
Topic: eggdrop listen
Replies: 11
Views: 3356

This may help you out... send the "Connection: close" response header right away, and the client should close the connection after the data is transferred. That will trigger your callback once with the last line, and then again with eof. Your idea for getdcc or getidx sounds feasible. You ...
by stdragon
Sun Nov 11, 2001 5:46 am
Forum: Archive
Topic: Need some help by writing a script...
Replies: 5
Views: 828

Unfortunately, the traffic variables aren't exported in the module table, so modules can't access them. Changing the table would require a patch anyways, so I don't really see any benefit to a module version.
by stdragon
Sat Nov 10, 2001 8:11 pm
Forum: Archive
Topic: Need some help by writing a script...
Replies: 5
Views: 828

Here is a source patch I that creates a 'traffic' tcl command. It returns a list of lists of all the traffic information. to install the patch: download it from http://home.dal.net/stdragon/eggdrop/tcl_traffic.patch move it to the eggdrop/src directory type 'patch < tcl_traffic.patch' recompile eggd...
by stdragon
Thu Nov 08, 2001 9:13 pm
Forum: Archive
Topic: Get info from /proc/uptime
Replies: 4
Views: 696

I think the first number is the number of seconds the system has been up. I don't know what the second number is. Getting the time is easy: proc get_time {total} { set seconds [expr $total % 60] set total [expr $total / 60] set minutes [expr $total % 60] set total [expr $total / 60] set hours [expr ...
by stdragon
Thu Nov 08, 2001 9:02 am
Forum: Archive
Topic: pop up ads nooooooo
Replies: 5
Views: 795

Annoying pop-up credit card ads on the main page? Say it isn't so!

I suppose we can give you the benefit of the doubt that your web host is forcing you to put them there? :smile:
by stdragon
Thu Nov 08, 2001 8:51 am
Forum: Archive
Topic: Close channel +invite
Replies: 6
Views: 838

Wow I actually have a script like that I wrote for someone a long time ago.

http://home.dal.net/stdragon/eggdrop/privateroom.tcl

Download it to your eggdrop/scripts directory, then in your config file put: source scripts/privateroom.tcl
by stdragon
Thu Nov 08, 2001 8:44 am
Forum: Archive
Topic: Something
Replies: 1
Views: 721

Read about the 'string' command, and the 'match' subcommand, at http://www.scriptics.com or tcl.activestate.com.
by stdragon
Thu Nov 08, 2001 8:42 am
Forum: Archive
Topic: Request mass inviter tcl
Replies: 3
Views: 639

lol right on Wcc! And I'd like to ask the spammer something... what is your goal when you spam? Surely you realize that the vast majority of people dislike your misleading messages and unsolicited invitations. I think you would accomplish a lot more by feeding your 'creative energies' into making yo...
by stdragon
Wed Nov 07, 2001 8:09 pm
Forum: Archive
Topic: Odd 'putserv' behavior in eggdrop1.6.4
Replies: 8
Views: 1163

Did the quotes have any high-bit characters in them? High-bit characters are characters whose ascii value is above 127, such as ÈÉÊâãä. I forget what version it was fixed in, but for a while, special characters like that could cause eggdrop to lose server output. This only applies if your tcl versio...
by stdragon
Mon Nov 05, 2001 6:09 pm
Forum: Archive
Topic: Need an exsample script!
Replies: 3
Views: 606

bind pub o|o !kill do_kill proc do_kill {nick uhost hand chan text} { set victim_uhost [getchanhost $text] if {$victim_uhost == ""} { putserv "PRIVMSG $chan :$text not found" return 0 } putserv "MODE $chan +b *!$victim_uhost" putserv "KICK $chan $text" return...
by stdragon
Fri Nov 02, 2001 7:26 am
Forum: Archive
Topic: irco Scan Port v1.0
Replies: 12
Views: 1358

Read the manual page for the 'socket' command.
by stdragon
Wed Oct 31, 2001 3:17 am
Forum: Archive
Topic: help with sock connections
Replies: 27
Views: 6177

From the tcl command manual page you read: In the first form, the read command reads all of the data from channelId up to the end of the file. I think that pretty much explains the problem... you are trying to read all the data from the socket up to the end of file... for a socket, that means until ...
by stdragon
Tue Oct 30, 2001 1:13 am
Forum: Archive
Topic: help with sock connections
Replies: 27
Views: 6177

Using gets isn't going to get you any farther than eggdrop sockets, because gets looks for a cr or lf. Read the msn protocol... there is a field that tells the length of the message. So, you need to parse the server message correctly, extract the length, then use the 'read' command, which lets you r...