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.

how to speed up eggdrops default text-output to server

Discussion of Eggdrop's code and module programming in C.
Post Reply
f
formtapez
Voice
Posts: 3
Joined: Tue Nov 01, 2005 3:53 pm

how to speed up eggdrops default text-output to server

Post by formtapez »

Hello!

We have an own (private) irc-network, and a eggdrop running very much tcl-scripts.
I'm trying to speed up the output of the bot to 10 lines per sec.
The solutions i found in this forum doesn't work for me, because i cant change all tcl-scripts to use putquick or some...

Is it possible to change the c-code of the bot, so it will write *any* messages faster?

(By the way, the irc-server is running on the same-machine.)

Things i tried in the server.c (without success):
- define msgrate 0
- define maxpenalty 30

Greetings
formtapez
d
dwickie
Halfop
Posts: 76
Joined: Sat Aug 21, 2004 8:53 am
Location: /pub/beer

Post by dwickie »

Code: Select all

proc putfast {arg} {
  append arg "\n"
  putdccraw 0 [string length $arg] $arg
} 

usage same as putquick/putserv/puthelp
f
formtapez
Voice
Posts: 3
Joined: Tue Nov 01, 2005 3:53 pm

Post by formtapez »

With that, only the first 4 lines are sent fast. After that i get 1sec delay per line.

But not with putdccraw 0. I use socket no. 8 (irc-server-socked)
User avatar
]Kami[
Owner
Posts: 590
Joined: Thu Jul 24, 2003 2:59 pm
Location: Slovenia
Contact:

Post by ]Kami[ »

#define msgrate should work.

"/* Number of seconds to wait between transmitting queued lines to the server
* lower this value at your own risk. ircd is known to start flood control
* at 512 bytes/2 seconds.
*/ "

Don't forget that you need to recompile the bot when you change it.

Also check this thread
f
formtapez
Voice
Posts: 3
Joined: Tue Nov 01, 2005 3:53 pm

Post by formtapez »

Problem solved: Giving the Bot ircOP status helps a lot 8)
User avatar
KrzychuG
Master
Posts: 306
Joined: Sat Aug 16, 2003 2:51 pm
Location: Torun, Poland
Contact:

Post by KrzychuG »

formtapez wrote:Problem solved: Giving the Bot ircOP status helps a lot 8)
I told ya, that it's server dependant ;P
Que?
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

[putdccraw] is undocumented for a reason; it should not be used, except for issuing a single command only when you are absolutely sure it will get through (not ignored due to command pace limitations which are imposed by most servers)
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
Post Reply