[IRCServices Coding] Bug or misunderstood ?

|SaMaN| saman at alkol.org
Fri Oct 17 03:07:15 PDT 2003


Im using unreal ircd. When channel is empty and if channel owner joins
his/her registered channel it does
(ChanServ sets mode: +ntrq nick) but when channel is not empty and if
channel owner joins his/her registered channel it does (ChanServ sets mode:
+oq nick nick). As you see on the first one there is no +o and because of
this chanserv does not update the last_used time because chanserv is set to
update last_used time with +o (CUMODE_o) so channels drop while channel
owners use them. Is this a bug or my misunderstood ?

######################################################
modules/chanserv/check.c
...
void check_chan_user_modes(const char *source, struct c_userlist *u,
                           Channel *c, int32 oldmodes)
...
        if ((res & ~modes) & CUMODE_o) {
            ci->last_used = time(NULL);
            put_channelinfo(ci);
        }
...
######################################################

|SaMaN|