ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/modules/m_tburst.c
(Generate patch)

Comparing ircd-hybrid/trunk/modules/m_tburst.c (file contents):
Revision 9085 by michael, Sun Oct 13 09:52:35 2019 UTC vs.
Revision 9086 by michael, Mon Oct 14 15:45:15 2019 UTC

# Line 94 | Line 94 | ms_tburst(struct Client *source_p, int p
94  
95    if (accept_remote == true)
96    {
97    bool topic_differs = strncmp(channel->topic, topic, sizeof(channel->topic) - 1);
97      bool hidden_server = (ConfigServerHide.hide_servers || IsHidden(source_p));
98  
99      channel_set_topic(channel, topic, setby, remote_topic_ts, false);
# Line 102 | Line 101 | ms_tburst(struct Client *source_p, int p
101      sendto_server(source_p, CAPAB_TBURST, 0, ":%s TBURST %s %s %s %s :%s",
102                    source_p->id, parv[1], parv[2], parv[3], setby, topic);
103  
104 <    if (topic_differs == true)
104 >    /* If it's a new topic, send it to clients, otherwise drop it to save bandwith. */
105 >    if (strncmp(channel->topic, topic, sizeof(channel->topic) - 1))
106      {
107        if (IsClient(source_p))
108          sendto_channel_local(NULL, channel, 0, 0, 0, ":%s!%s@%s TOPIC %s :%s",

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines