Page 1 of 1

[Patches] eggdrop1.6.18 +HANDLEN_31 & +MODES_PER_LINE_MA

Posted: Sat Nov 18, 2006 1:25 pm
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

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

Posted: Sat Nov 18, 2006 2:25 pm
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 ;)

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

Posted: Sat Nov 18, 2006 5:37 pm
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