From c5a01fa08eb78a786ca45ff32472eec4f3be88c6 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 10 Apr 2004 13:05:23 +0000 Subject: Fixed 'T' token to actually sync git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@492 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/inspircd.cpp') diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 263b3876a..60b74b4d4 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -5357,14 +5357,11 @@ void handle_T(char token,char* params,serverrec* source,serverrec* reply, char* topic++; time_t TS = atoi(tm); chanrec* c = FindChan(channel); - log(DEBUG,"time='%d' setby='%s' channel='%s' topic='%s'",TS,setby,channel,topic); if (c) { - log(DEBUG,"channel found"); // in the case of topics and TS, the *NEWER* - if (TS <= c->age) + if (TS <= c->topicset) { - log(DEBUG,"channel TS higher, replacing"); WriteChannelLocal(c,NULL,"TOPIC %s :%s",c->name,topic); strncpy(c->topic,topic,MAXTOPIC); strncpy(c->setby,setby,NICKMAX); -- cgit v1.3.1-10-gc9f91