Revision: 1938
http://undernet-ircu.svn.sourceforge.net/undernet-ircu/?rev=1938&view=rev
Author: entrope
Date: 2010-01-07 03:23:57 +0000 (Thu, 07 Jan 2010)
Log Message:
-----------
Accept topic changes from servers that do not send topic-set timestamps (fixes
SF #2897520).
Modified Paths:
--------------
ircu2/branches/u2_10_12_branch/ChangeLog
ircu2/branches/u2_10_12_branch/ircd/m_topic.c
Modified: ircu2/branches/u2_10_12_branch/ChangeLog
===================================================================
--- ircu2/branches/u2_10_12_branch/ChangeLog 2010-01-07 03:06:13 UTC (rev
1937)
+++ ircu2/branches/u2_10_12_branch/ChangeLog 2010-01-07 03:23:57 UTC (rev
1938)
@@ -1,5 +1,10 @@
2010-01-06 Michael Poole <[email protected]>
+ * ircd/m_topic.c (ms_topic): When no topic timestamp is passed,
+ use the current time instead of the channel creation time.
+
+2010-01-06 Michael Poole <[email protected]>
+
* ircd/m_silence.c (m_silence): Only show the silence list for the
requesting client and for channel services, to help keep other
clients' servers hidden.
Modified: ircu2/branches/u2_10_12_branch/ircd/m_topic.c
===================================================================
--- ircu2/branches/u2_10_12_branch/ircd/m_topic.c 2010-01-07 03:06:13 UTC
(rev 1937)
+++ ircu2/branches/u2_10_12_branch/ircd/m_topic.c 2010-01-07 03:23:57 UTC
(rev 1938)
@@ -197,6 +197,7 @@
if (parc > 3 && (ts = atoi(parv[2])) && chptr->creationtime < ts)
continue;
+ ts = 0; /* Default to the current time if no topic_time is passed. */
if (parc > 4 && (ts = atoi(parv[3])) && chptr->topic_time > ts)
continue;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches