[IRCServices] umode or services option

Ciarán Reilly Ciaran.Reilly at ntlworld.com
Thu Oct 19 09:10:25 PDT 2000


Hiya David, thanks a lot for your help

I understand it (slightly) lol..... think I need to do quite a bit more
brushing up on my C before I attempt it myself..... have you any suggestions
of places I can pickup on the Services code etc (makes mental note to get
subbed to the coding list) ?



> Wow, where to begin... lol
>
> Well, at one point I had to modify 'configure' to compile specifically for
> Elite (#define IRC_ELITE)  as there is an option in the ircd to prevent
> colors from being sent to the channel (like Bahamut) but is not supported
in
> Dal_4_4_15.

I must admit, I just used the modes in the Ircd independantly of Servcies,
which was pretty sloppy, I never realised they could be edited to this
extent...... Then again, there was never much call for Services to support
the mode as my users didn't use it much...

Let me see if I've got this right..... So when you installed Services, you
first modified the Config.h  to include the line #define IRC_Elite ? Then
you compiled, having already added your other code for the U modes to
Services.h and chanserv.h etc ?


> I have also kept compatibilty with Andrew's code, in case he
> might ask to incorporate some of this into the next version of services...
> (hint, hint!) Actually, the one flag I added in NickServ flags is prolly
> going to have to change (NI_FORCEID 0x00001000)

Forceid....... call me stupid, but is this used to force a user to identify
to NickServ, or is ID something else ?   what did you add it for ?
sorry for all these questions, I'm just trying to gather as much knowledge
as poss on whats going on :-)

> I was planning on adding that mlock
> to Chanserv for +O channels, but haven't done it yet... it's easy
enough...

Right, think I can get my head round this bit.....

> first add a CMODE_O to the services.h (0x00000800 perhaps?)
>
> then basically have this code in chanserv.c
>
> #if defined(IRC_BAHAMUT) || defined(IRC_ELITE)
>                         (ci->mlock_off & CMODE_O) ? "O" : "",
> #else
>                         "",
> #endif
>
> BTW, here's what I changed in chanserv.c for the color mode:
>
> #if defined(IRC_BAHAMUT) || defined(IRC_ELITE)
> #ifdef IRC_BAHAMUT
>                         (ci->mlock_off & CMODE_C) ? "c" : "",
> #else
>                         (ci->mlock_off & CMODE_C) ? "x" : "",
> #endif
>
> #else
>                         "",
> #endif
>

Hmmmm am starting to get it...... thanks for your time David...... and sorry
to everyone for this going to the main list, I'll make sure it goes to
coding in future :-)


Ciarán.



---------------------------------------------------------------
To unsubscribe, send email to majordomo at snow.shadowfire.org
with "unsubscribe ircservices" in the body, without the quotes.