summaryrefslogtreecommitdiff
path: root/src/chanserv.c
diff options
context:
space:
mode:
authortrystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-10-28 05:09:33 +0000
committertrystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-10-28 05:09:33 +0000
commite769d30b90b2813b48b60a4072c84aa3fd22c127 (patch)
tree086730a0f34a46b8fa1e0536594854d993ccc5b0 /src/chanserv.c
parent5c5e36be3bbd1a9a3d02e23f5fc3ba9f652d360d (diff)
BUILD : 1.7.5 (426) BUGS : 133, 196, 200 NOTES : Add method to deal with hardcored sqline in the ircd (133), fixes timestamp errors with TOPIC (196), modes structs externed so mod coders can get to them easier (N/A), MS CHECK now checks the right value (200)
git-svn-id: svn://svn.anope.org/anope/trunk@426 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@283 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/chanserv.c')
-rw-r--r--src/chanserv.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/chanserv.c b/src/chanserv.c
index da135d748..b18fac1c7 100644
--- a/src/chanserv.c
+++ b/src/chanserv.c
@@ -1801,7 +1801,12 @@ int check_topiclock(Channel * c, time_t topic_time)
strscpy(c->topic_setter, ci->last_topic_setter, NICKMAX);
if (ircd->topictsforward) {
/* Because older timestamps are rejected */
- c->topic_time = topic_time + 1;
+ /* Some how the topic_time from do_topic is 0 set it to current + 1 */
+ if (!topic_time) {
+ c->topic_time = time(NULL) + 1;
+ } else {
+ c->topic_time = topic_time + 1;
+ }
} else {
c->topic_time = ci->last_topic_time;
}