Changeset 750 for branches/ithildin-1.1


Ignore:
Timestamp:
06/16/06 02:10:13 (6 years ago)
Author:
wd
Message:

Update to reset modes to non-TS servers as well as local clients.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ithildin-1.1/modules/ircd/commands/mode.c

    r748 r750  
    245245                (cli != NULL ? cli_server_uplink(cli) : srv), "MODE",         \ 
    246246                "%s %s", result, rbuf);                                       \ 
     247        sendto_serv_pflag_butone(PROTOCOL_SFL_TSMODE, false, sptr, cli,       \ 
     248                    srv, chan->name, "MODE", "%s%s %d", result, rbuf,         \ 
     249                    chan->created);                                           \ 
    247250        r = result + 1;                                                       \ 
    248251        rblen = 0;                                                            \ 
     
    309312     * case should only *ever* occur during synchronization.  We do not send 
    310313     * the mode changes down in the opposite direction because we will send 
    311      v this command, with the correct TS, down the wire and all other TS 
     314     * this command, with the correct TS, down the wire and all other TS 
    312315     * servers will do the same thing. 
    313316     * 
     
    378381        /* this is a rather complex case, we basically have to wade through 
    379382         * our modes and remove them as we go.  First we remove channel 
    380          * modes, then user prefixes.  the hard part of this is actually 
    381          * client notification. */ 
     383         * modes, then user prefixes.  
     384         * 
     385         * NB: We send reverted modes to local clients and non-ts servers 
     386         * only.  Servers which are TS will get the updated TS and revert 
     387         * their modes accordingly on their own.  This helps to reduce spam 
     388         * from changes of this nature. */ 
    382389        unsigned char *s; 
    383390        int cnt = 0; 
Note: See TracChangeset for help on using the changeset viewer.