This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Undernet IRC Server Source Code.".

The branch, u2_10_12_branch has been updated
       via  9c524c2739d97ea858b4bcbb45a7d057e4fbbc19 (commit)
      from  1fe937e29ac2b4b5203388eee0c5dd0436939779 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 9c524c2739d97ea858b4bcbb45a7d057e4fbbc19
Author: Michael Poole <[email protected]>
Date:   Thu Oct 20 23:10:08 2016 -0400

    do_settopic: Topic timestamps should never go backwards.
    
    Fixes SF#180.

diff --git a/ircd/m_topic.c b/ircd/m_topic.c
index 4fb1a8f..86aa181 100644
--- a/ircd/m_topic.c
+++ b/ircd/m_topic.c
@@ -66,7 +66,12 @@ static void do_settopic(struct Client *sptr, struct Client 
*cptr,
    /* setting a topic */
    ircd_strncpy(chptr->topic, topic, TOPICLEN);
    ircd_strncpy(chptr->topic_nick, cli_name(from), NICKLEN);
-   chptr->topic_time = ts ? ts : TStime();
+   if (ts == 0) {
+     ts = TStime();
+     if (ts <= chptr->topic_time)
+       ts = chptr->topic_time;
+   }
+   chptr->topic_time = ts;
    /* Fixed in 2.10.11: Don't propagate local topics */
    if (!IsLocalChannel(chptr->chname))
      sendcmdto_serv_butone(sptr, CMD_TOPIC, cptr, "%H %Tu %Tu :%s", chptr,
-----------------------------------------------------------------------

Summary of changes:
 ircd/m_topic.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Undernet IRC Server Source Code.
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches

Reply via email to