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.

Eggdrop Doesn't force certain modes...

Old posts that have not been replied to for several years.
Locked
D
DJ747
Voice
Posts: 10
Joined: Tue Nov 16, 2004 11:22 pm

Eggdrop Doesn't force certain modes...

Post by DJ747 »

My eggdrop doesn't force ALL modes that I include into the chanmode line. I was hoping someone out there can make a mod so that I can edit which modes it recognises?
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

you (or that someone you are waiting for ;) need to patch src/mod/channels.mod/channels.c (set_mode_protect() and get_mode_protect()) and src/chan.h and add to the current recognized modes, from chan.h:

Code: Select all

#define CHANINV    0x0001  /* i                        */
#define CHANPRIV   0x0002  /* p                        */
#define CHANSEC    0x0004  /* s                        */
#define CHANMODER  0x0008  /* m                        */
#define CHANTOPIC  0x0010  /* t                        */
#define CHANNOMSG  0x0020  /* n                        */
#define CHANLIMIT  0x0040  /* l                        */
#define CHANKEY    0x0080  /* k                        */
#define CHANANON   0x0100  /* a - ircd 2.9             */
#define CHANQUIET  0x0200  /* q - ircd 2.9             */
#define CHANNOCLR  0x0400  /* c - Bahamut              */
#define CHANREGON  0x0800  /* R - Bahamut              */
#define CHANMODREG 0x1000  /* M - Bahamut              */
#define CHANNOCTCP 0x2000  /* C - QuakeNet's ircu 2.10 */
#define CHANLONLY  0x4000  /* r - ircu 2.10.11         */
D
DJ747
Voice
Posts: 10
Joined: Tue Nov 16, 2004 11:22 pm

Post by DJ747 »

ok that looks really confusing to me with the 0x0001, do I just put in some random numbers or is there something special I need in there? And do they need to be a certain number for a different chan letter?
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

you better wait for someone...
Locked