Adding cmode +c
nospam at ofloo.org
nospam at ofloo.org
Wed Nov 16 17:27:52 EST 2005
oh could you post it if you are finished.. i would like to use it as well..
Amand Tihon schreef:
>Hello,
>
>I'm trying to add a +c cmode (strip colors) to hybrid 7.2rc1, but I've only
>played with hybrid's sources since yesterday, so please bear with me if I'm
>completely wrong :)
>
>I wonder if there's a better way to add a new cmode. Here's what I've done:
>
>In includes/channel_mode.h, I added
> #define MODE_NOCOLOR 0x0200
>
>In src/channel_modes.c, I modified the flags[] table, prepending the following
>line
> { MODE_NOCOLOR, 'c' },
>and the ModeTable corresponding line, so that it reads
> {chm_simple, (void *) MODE_NOCOLOR}, /* c */
>
>My modules/m_nocolor.c then installs a hook on "channel_message".
>
>My question is : would it be possible to add a cmode from a module, instead of
>patching the sources, or is this the normal way to do it ?
>
>Thank you.
>
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: OpenPGP digital signature
URL: <http://lists.ircd-hybrid.org/pipermail/hybrid/attachments/20051116/fdeebe8b/attachment.pgp>
More information about the hybrid
mailing list