| View previous topic :: View next topic |
| Author |
Message |
formtapez Voice
Joined: 01 Nov 2005 Posts: 3
|
Posted: Tue Nov 01, 2005 3:59 pm Post subject: how to speed up eggdrops default text-output to server |
|
|
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 |
|
| Back to top |
|
 |
dwickie Halfop
Joined: 21 Aug 2004 Posts: 76 Location: /pub/beer
|
Posted: Tue Nov 01, 2005 5:35 pm Post subject: |
|
|
| Code: |
proc putfast {arg} {
append arg "\n"
putdccraw 0 [string length $arg] $arg
}
|
usage same as putquick/putserv/puthelp |
|
| Back to top |
|
 |
formtapez Voice
Joined: 01 Nov 2005 Posts: 3
|
Posted: Tue Nov 01, 2005 5:50 pm Post subject: |
|
|
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) |
|
| Back to top |
|
 |
]Kami[ Owner

Joined: 24 Jul 2003 Posts: 590 Location: Slovenia
|
Posted: Sun Nov 06, 2005 6:56 pm Post subject: |
|
|
#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 _________________ Slovene Eggdrop Page |
|
| Back to top |
|
 |
formtapez Voice
Joined: 01 Nov 2005 Posts: 3
|
Posted: Sun Nov 06, 2005 9:30 pm Post subject: |
|
|
Problem solved: Giving the Bot ircOP status helps a lot  |
|
| Back to top |
|
 |
KrzychuG Master

Joined: 16 Aug 2003 Posts: 306 Location: Torun, Poland
|
Posted: Mon Nov 07, 2005 3:15 am Post subject: |
|
|
| formtapez wrote: | | Problem solved: Giving the Bot ircOP status helps a lot 8) |
I told ya, that it's server dependant ;P _________________ Que? |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Wed Nov 09, 2005 1:54 am Post subject: |
|
|
[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] tag when posting logs, code |
|
| Back to top |
|
 |
|