/[svn]/ircd-hybrid/trunk/modules/m_tburst.c
ViewVC logotype

Diff of /ircd-hybrid/trunk/modules/m_tburst.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1614 by michael, Sat Oct 27 21:02:32 2012 UTC revision 1615 by michael, Mon Oct 29 18:20:49 2012 UTC
# Line 92  ms_tburst(struct Client *client_p, struc Line 92  ms_tburst(struct Client *client_p, struc
92    if (accept_remote)    if (accept_remote)
93    {    {
94      int topic_differs = strncmp(chptr->topic, topic, sizeof(chptr->topic) - 1);      int topic_differs = strncmp(chptr->topic, topic, sizeof(chptr->topic) - 1);
95        int hidden_server = (ConfigServerHide.hide_servers || IsHidden(source_p));
96    
97      set_channel_topic(chptr, topic, setby, remote_topic_ts);      set_channel_topic(chptr, topic, setby, remote_topic_ts);
98    
99        sendto_server(source_p, CAP_TBURST|CAP_TS6, NOCAPS,
100                      ":%s TBURST %s %s %s %s :%s",
101                      ID(source_p), parv[1], parv[2], parv[3], setby, topic);
102        sendto_server(source_p, CAP_TBURST, CAP_TS6,
103                      ":%s TBURST %s %s %s %s :%s",
104                      source_p->name, parv[1], parv[2], parv[3], setby, topic);
105    
106      if (topic_differs)      if (topic_differs)
107        sendto_channel_local(ALL_MEMBERS, 0, chptr, ":%s TOPIC %s :%s",        sendto_channel_local(ALL_MEMBERS, 0, chptr, ":%s TOPIC %s :%s",
108                             ConfigServerHide.hide_servers ? me.name : source_p->name,                             hidden_server ? me.name : source_p->name,
109                             chptr->chname, chptr->topic);                             chptr->chname, chptr->topic);
110    }    }
   
   /*  
    * Always propagate what we have received, not only if we accept the topic.  
    * This will keep other servers in sync.  
    */  
   sendto_server(source_p, CAP_TBURST|CAP_TS6, NOCAPS,  
                 ":%s TBURST %s %s %s %s :%s",  
                 ID(source_p), parv[1], parv[2], parv[3], setby, topic);  
   sendto_server(source_p, CAP_TBURST, CAP_TS6,  
                 ":%s TBURST %s %s %s %s :%s",  
                 source_p->name, parv[1], parv[2], parv[3], setby, topic);  
111  }  }
112    
113  static struct Message tburst_msgtab = {  static struct Message tburst_msgtab = {

Legend:
Removed from v.1614  
changed lines
  Added in v.1615

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28