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.

[Patches] eggdrop1.6.18 +HANDLEN_31 & +MODES_PER_LINE_MA

Website and forum-related announcements and discussion, and anything else that doesn't fit in the above forums.
Post Reply
User avatar
TCL_no_TK
Owner
Posts: 509
Joined: Fri Aug 25, 2006 7:05 pm
Location: England, Yorkshire

[Patches] eggdrop1.6.18 +HANDLEN_31 & +MODES_PER_LINE_MA

Post by TCL_no_TK »

I've made 2 patches to make it easyer for people that want eggdrop to handle nicknames that are bigger than 9 chars. And also a patch that changes the modes per line to a max of 20 as most recent IRCds can go up to 20.

BTW am not to sure about this, but modifiying the source code is not supported and these patches are posted 'as is'. I haven't had any problems with them and it seems to work great for me, so i hope this makes things easyer for you.

HANDLEN_31 patch

Code: Select all

--- eggdrop1.6.18/src/eggdrop.h	2006-03-28 03:35:50.000000000 +0100
+++ eggdrop1.6.18+HANDLEN31/src/eggdrop.h	2006-11-18 16:55:56.000000000 +0000
@@ -60,7 +60,7 @@
  *       You should leave this at 32 characters and modify nick-len in the
  *       configuration file instead.
  */
-#define HANDLEN 9   /* valid values 9->NICKMAX  */
+#define HANDLEN 31  /* valid values 9->NICKMAX  */
 #define NICKMAX 32  /* valid values HANDLEN->32 */
MODES_PER_LINE_MAX_20 patch

Code: Select all

--- eggdrop1.6.18/src/chan.h	2006-03-28 03:35:49.000000000 +0100
+++ eggdrop1.6.18+MODES_PER_LINE_MAX20/src/chan.h	2006-11-18 17:07:40.000000000 +0000
@@ -38,7 +38,7 @@
 #undef NO_HALFOP_CHANMODES
 
 /* Hard limit of modes per line. */
-#define MODES_PER_LINE_MAX 6
+#define MODES_PER_LINE_MAX 20
 
 #define HALFOP_CANTDOMODE(_a) (!me_op(chan) && (!me_halfop(chan) || (strchr(NOHALFOPS_MODES, _a) != NULL)))
 #define HALFOP_CANDOMODE(_a)  (me_op(chan) || (me_halfop(chan) && (strchr(NOHALFOPS_MODES, _a) == NULL)))
Thanks :D
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Re: [Patches] eggdrop1.6.18 +HANDLEN_31 & +MODES_PER_LIN

Post by demond »

TCL_no_TK wrote:I've made 2 patches to make it easyer for people that want eggdrop to handle nicknames that are bigger than 9 chars. And also a patch that changes the modes per line to a max of 20 as most recent IRCds can go up to 20.
I'd bet most recent ircds' modes-per-line is way below 20, more precisely 6 (and no, Unreal and the like aren't most)
BTW am not to sure about this, but modifiying the source code is not supported and these patches are posted 'as is'. I haven't had any problems with them and it seems to work great for me, so i hope this makes things easyer for you.
they seem pretty stable to me... you know, it's not like you have more than 1 line of (preprocessor) code in there ;)
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
User avatar
TCL_no_TK
Owner
Posts: 509
Joined: Fri Aug 25, 2006 7:05 pm
Location: England, Yorkshire

Reply: Re: [Patches] eggdrop1.6.18 +HANDLEN_31 & +MODES

Post by TCL_no_TK »

I'd bet most recent ircds' modes-per-line is way below 20, more precisely 6 (and no, Unreal and the like aren't most)
Unreal is 12, the max of 20 was for people that use inspircd with has a max of 20+ (20 is the default) and a nickmax of 31 (31 is the default). Its unusual as i've found that most eggdrops are for network like undernet, ircnet ..ect that support the default for eggdrop. just wanted to make sure it would work with all.
they seem pretty stable to me... you know, it's not like you have more than 1 line of (preprocessor) code in there
Thanks :D
Post Reply