[Patches] eggdrop1.6.18 +HANDLEN_31 & +MODES_PER_LINE_MA
Posted: Sat Nov 18, 2006 1:25 pm
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 patchMODES_PER_LINE_MAX_20 patch
Thanks
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 */
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)))