this module is an existing module as a result of my review, I see incompleteness in your code
Kod
u_int is_invited(aClient *sptr, aChannel *chptr) {
just below
add and
Kod
if (chptr != NULL && is_invited(sptr, chptr) && MyClient(sptr) && !IsAnOper(sptr) && !IsULine(sptr)) {
Can you try replacing this line with the following line?
Kod
if (chptr != NULL && !is_invited(sptr, chptr) && MyClient(sptr) && !IsAnOper(sptr) && !IsULine(sptr)) {
shouldn't be a problem