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.

Undocumentened conf file variables

Old posts that have not been replied to for several years.
Locked
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Undocumentened conf file variables

Post by awyeah »

Is anyone familiar with the undocument eggdrop variables which
can be used in the .conf file, which are mentioned in this code. :roll:

Code: Select all

###########
# irc.mod #
###########

# custom network
#XXX damn eggdrop bug
set net-type 1
set net-type 5

# number of mode parameters per line
set modes-per-line 6

# include +l/k in modes-per-line
set include-lk 1

# enable +e/I
set use-exempts 1
set use-invites 1

# mix +e/I with others
set prevent-mixing 0

# maximum length of mode change buffer
set mode-buf-length 300

# max individual lists
set max-bans 100
set max-exempts 45
set max-invites 45

# max total lists
set max-modes 190

# number of nicks per KICK
set kick-method 4

# send invitation on key request if channel is +i
set invite-key 1

# casetable mode
set rfc-compliant 0


##############
# server.mod #
##############

# stackable commands, comma-separated primary targets
set stackable-commands "PRIVMSG NOTICE JOIN PART KICK WHOIS WHOWAS USERHOST ISON WATCH DCCALLOW"

# stackable commands, space-separated primary targets
set stackable2-commands "USERHOST ISON WATCH"

# command target stacking:
# 0 - no stacking
# 1 - stack everything
# 2 - stack stackable-commands
# 3 - stack everything but stackable-commands
set use-fast-deq 2

# max targets
set stack-limit 4

# does umode +r mean restricted?
set check-mode-r 0

# irc2 penalties
set use-penalties 0

# nick length
set nicklen 30
Are these stacking codes of good usage or not? :-?
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Re: Undocumentened conf file variables

Post by awyeah »

Also some one told me this:
I also neglected to mention that setting optimize-kicks to at least 1
is a good idea. Unfortunately, eggdrop 1.6.x's kick optimizer is
broken, so you'll also need this patch to use it:
http://homepage.mac.com/quension/kickqfix.patch

I'm not bothering to post patches for anything else. Hopefully eggdrop
1.7 isn't too far off...
Here is the patch.

Code: Select all

Fixes eggdrop 1.6.x's broken kick queue restacker.  To use, place this file in
the eggdrop source directory and run:

patch -p0 < kickqfix.patch

--- src/mod/server.mod/server.c	2004-04-09 14:33:39 -0400
+++ src/mod/server.mod/server.c	2004-06-03 22:12:02 -0400
@@ -648,12 +648,14 @@
   struct msgq *msg, *m, *lm;
   char buf[511], buf2[511], *reason2, *nicks, *chan, *chan2, *reason, *nick,
        newnicks[511], newnicks2[511], newmsg[511];
+  int nnlen, nn2len;
   int changed = 0, nr = 0;
 
   if (!optimize_kicks)
     return 0;
 
   newnicks[0] = 0;
+  nnlen = sizeof newnicks;
   switch (which) {
   case DP_MODE:
     h = &modeq;
@@ -687,14 +689,15 @@
   chan = newsplit(&reason);
   nicks = newsplit(&reason);
   while (strlen(nicks) > 0) {
-    egg_snprintf(newnicks, sizeof newnicks, "%s,%s", newnicks,
-                 newsplit(&nicks));
+    nnlen -= egg_strcatn(newnicks, ",", nnlen);
+    nnlen -= egg_strcatn(newnicks, splitnicks(&nicks), nnlen);
     nr++;
   }
   for (m = msg->next, lm = NULL; m && (nr < kick_method);) {
     if (!egg_strncasecmp(m->msg, "KICK", 4)) {
       changed = 0;
       newnicks2[0] = 0;
+      nn2len = sizeof newnicks2;
       strncpyz(buf2, m->msg, sizeof buf2);
       reason2 = buf2;
       newsplit(&reason2);
@@ -705,11 +708,14 @@
           nick = splitnicks(&nicks);
           if ((nr < kick_method) && ((9 + strlen(chan) + strlen(newnicks) +
               strlen(nick) + strlen(reason)) < 510)) {
-            egg_snprintf(newnicks, sizeof newnicks, "%s,%s", newnicks, nick);
+            nnlen -= egg_strcatn(newnicks, ",", nnlen);
+            nnlen -= egg_strcatn(newnicks, nick, nnlen);
             nr++;
             changed = 1;
-          } else
-            egg_snprintf(newnicks2, sizeof newnicks2, "%s,%s", newnicks2, nick);
+          } else {
+            nn2len -= egg_strcatn(newnicks2, ",", nn2len);
+            nn2len -= egg_strcatn(newnicks2, nick, nn2len);
+          }
         }
       }
       if (changed) {
Is this true? by loading this into the code, will it correct or make the kick stacking more better?? :mrgreen:
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Well, most of what you have pasted is very well documented and can be found in eggdrop.conf (that is included in the tarball).

Not in eggdrop.conf:

Code: Select all

set invite-key 1
set stackable-commands
set use-penalties
As for "optimize-kicks" being 'broken', I have not seen evidence of this myself with the 1.6.x series.

~doc/UPDATES1.6 may contain additional information.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
W
Wcc
Master
Posts: 278
Joined: Sun Oct 28, 2001 8:00 pm
Location: USA
Contact:

Post by Wcc »

Hmm... never heard anything about optimize-kicks being broken.. but it never fails to amaze me how long a bug can go without someone reporting it :P I'll have a look.
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

One of the IRCd coders of bahamut (The DALnet IRCd), told me regarding this. When I explained why my eggdrop gets excess flood on so such short notice, when kicking alot of clones.

You can discuss this with him, I can give you his email if you like. :mrgreen:
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
Locked