Changeset 755 for branches/ithildin-1.1


Ignore:
Timestamp:
06/24/06 19:35:58 (6 years ago)
Author:
wd
Message:

Let non-TS but master servers set modes without frying TS.

File:
1 edited

Legend:

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

    r750 r755  
    332332             * remove our own modes (because we believe the server will 
    333333             * accept our modes as stupidly as we accepted theirs... */ 
    334             log_debug("server %s has no TS support, setting TS for %s to 0!", 
    335                     sp->name, chan->name); 
    336             ts = 0; 
    337             chan->created = 0; /* normally set when we reject our modes, but 
    338                                   we don't reject our modes in this case..  */ 
     334            if (!SERVER_MASTER(srv)) { 
     335                log_debug("server %s has no TS support, setting TS for %s to 0!", 
     336                        sp->name, chan->name); 
     337                ts = 0; 
     338                chan->created = 0; /* normally set when we reject our modes, but 
     339                                      we don't reject our modes in this case..  */ 
     340            } else 
     341                /* For master servers without TS protocol support just 
     342                 * default to giving them what we think is the right TS. 
     343                 * Why do this?  Because it fits in with the whole 'master' 
     344                 * concept.  We're going to take these modes no matter what. 
     345                 * Why break TS over it? */ 
     346                ts = chan->created; 
    339347        } else { 
    340348            if (ts > chan->created) 
Note: See TracChangeset for help on using the changeset viewer.