Is there a way to allow the bot to send messages as fast as possible. I have the bot on my network on it's own server that has it's sendq disabled so it won't flood out if it tries to send messages to fast and i want to to be able to notice very fast. Thanks. i hope you understand what im trying to say
editing the source shouldnt be a problem. can you hint me some places where it is discussed or what to search. every time i search bot flood or whatever i get the channel flood protections. also i cant find -next, what is that?
--- eggdrop-1.6.15/src/mod/server.mod/server.c.old 2004-01-01 22:33:47.112948000 -0500
+++ eggdrop-1.6.15/src/mod/server.mod/server.c 2004-01-01 22:33:57.329394864 -0500
@@ -120,7 +120,7 @@
* lower this value at your own risk. ircd is known to start flood control
* at 512 bytes/2 seconds.
*/
-#define msgrate 2
+#define msgrate 0
/* Maximum messages to store in each queue. */
static int maxqmsg;
@@ -151,17 +151,17 @@
int ok = 0;
/* now < last_time tested 'cause clock adjustments could mess it up */
- if ((now - last_time) >= msgrate || now < (last_time - 90)) {
+ /* if ((now - last_time) >= msgrate || now < (last_time - 90)) { */
last_time = now;
if (burst > 0)
burst--;
ok = 1;
- }
+ /* } */
if (serv < 0)
return;
/* Send upto 4 msgs to server if the *critical queue* has anything in it */
if (modeq.head) {
- while (modeq.head && (burst < 4) && ((last_time - now) < MAXPENALTY)) {
+ while (modeq.head && (burst < 4)/* && ((last_time - now) < MAXPENALTY) */) {
if (deq_kick(DP_MODE)) {
burst++;
continue;
@@ -924,7 +924,7 @@
}
}
- if (which == DP_MODE || which == DP_MODE_NEXT)
+ /* if (which == DP_MODE || which == DP_MODE_NEXT) */
deq_msg(); /* DP_MODE needs to be sent ASAP, flush if possible. */
}