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

by user
Mon Mar 24, 2008 12:05 am
Forum: Scripting Help
Topic: codes reveiw
Replies: 8
Views: 3620

Re: codes reveiw

why $::lastbind == "**" , what this line will do? and what's the purpose to have upvar here in the procedure and what's the benefit? The global variable "lastbind" ("$::varname" is just another way to address global variables) is set by eggdrop (see doc/tcl-commands.do...
by user
Mon Mar 17, 2008 11:01 am
Forum: Scripting Help
Topic: UDP Sockets
Replies: 7
Views: 5144

by user
Mon Mar 17, 2008 8:17 am
Forum: Scripting Help
Topic: parsing this website
Replies: 13
Views: 5034

Code: Select all

foreach tr [regexp -all -inline {<tr class="dlc_info_row">.*?</tr>} $data] {
	# put your regexp to extract details from $tr here
}
by user
Fri Mar 14, 2008 11:10 am
Forum: Tcl FAQ
Topic: "Tip of the day"
Replies: 73
Views: 210654

Sending long messages

The maximum length of a single PRIVMSG is limited by a buffer allocated by the ircd for clients receiving your message. The size of this buffer is most commonly 512 bytes. Some of the space is eaten up by things that are required by the irc protocol, so to know the actual maximum length of the conte...
by user
Thu Mar 13, 2008 5:07 am
Forum: Script Requests
Topic: Help with Command
Replies: 39
Views: 14991

Re: Help with Command

CyberWar wrote:How i can make a command like this for my Bot?
What kind of command? irc/dcc?

(PS: I moved this thread from the Scripting Help forum)
by user
Wed Mar 12, 2008 1:35 pm
Forum: Scripting Help
Topic: What wrong?-- puts -nonewline $file_no \xc0
Replies: 2
Views: 1816

Re: What wrong?-- puts -nonewline $file_no \xc0

zhjwp wrote:What is wrong?
utf-8

You probably want

Code: Select all

fconfigure $file_no -translation binary
by user
Thu Mar 06, 2008 4:42 am
Forum: Scripting Help
Topic: [SOLVED] Some questions
Replies: 3
Views: 2022

Code: Select all

set count [llength [lsearch -all -exact -index 5 [banlist $chan] [lindex [split $text] 0]]]
('lsearch -all' requires tcl >= 8.4)
by user
Thu Mar 06, 2008 4:20 am
Forum: Scripting Help
Topic: connecting to ftp
Replies: 5
Views: 2548

...or, if you don't feel like reinventing the wheel, use the ftp package.
by user
Wed Mar 05, 2008 8:32 am
Forum: Scripting Help
Topic: [Eggdrop]Check if the bot has +ao @L via !check
Replies: 2
Views: 2838

'botisop' does not accept a list of channels (which is what 'channels' returns) and your command starting with "{" makes no sense at all. You'll need a loop to check each channel (' foreach ' would be the obvious choice, as you're looping through the elements of a list of channel names) I ...
by user
Tue Mar 04, 2008 11:14 am
Forum: Eggdrop Help
Topic: Eggdrop Ping Times out
Replies: 7
Views: 4891

chriskslater wrote:Rev@.cfl.res.rr.com
That's not a valid host name, but an error like that should not crash eggdrop. Someone a bit more into C than myself might be able to determine if a host name starting with a dot would cause a crash.
by user
Tue Mar 04, 2008 7:17 am
Forum: Scripting Help
Topic: Accepting DCC Files, without filesys.mod
Replies: 24
Views: 9631

Forgive me, wasn't the point of this new method, given the prior results, to not use fcopy? Yes, because fcopy didn't SEEM to work, but I re-read your comment and this: the file is transferring, and CopyMore is being ran, but it seems to lock the bot, and I don't get an acknowledgement that the tra...
by user
Tue Mar 04, 2008 5:50 am
Forum: Scripting Help
Topic: Accepting DCC Files, without filesys.mod
Replies: 24
Views: 9631

Empus wrote:Unfortunately that made it much much slower :<
That's weird. How about doing a fcopy with -size == file size? That way, when the callback is invoked, you'll either have the entire file or an error. (or SHOULD have - I didn't quite understand what went wrong in your previous fcopy experiment)
by user
Tue Mar 04, 2008 2:11 am
Forum: Scripting Help
Topic: Accepting DCC Files, without filesys.mod
Replies: 24
Views: 9631

Empus wrote:I would expect the transfer to be a lot faster than that...
Try adding a loop that keeps reading while {![fblocked $sock]} {...} (in the read_more proc)
strikelight wrote:Btw, it's "receive" not "recieve" ;p
Corrected :)
by user
Mon Mar 03, 2008 10:42 am
Forum: Scripting Help
Topic: Accepting DCC Files, without filesys.mod
Replies: 24
Views: 9631

It seems like fcopy will prevent you from being able to write to the socket using puts, so you'll have to do what fcopy does yourself. (like nml375 suggested) Here's some (untested & written in a hurry) code to get you started: namespace eval ::dccrecv { # change this and make sure the directory...
by user
Mon Mar 03, 2008 10:40 am
Forum: Scripting Help
Topic: [SOLVED] Some support on a issue
Replies: 3
Views: 2104

In your proc, $nick is the nick of the person triggering the command. What you want is a pub bind with the bot's nick as a keyword and then you'll have to parse $text to find the "command" part of the message.
Or you could make multiple pubm binds that include the botnick and command.