diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-10 13:05:23 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-10 13:05:23 +0000 |
commit | c5a01fa08eb78a786ca45ff32472eec4f3be88c6 (patch) | |
tree | 2512910dd3cac0558c0db70c305c772ee5c58ecf /src/inspircd.cpp | |
parent | 7c60677305f98d9b097329bc15118af7ebe5c431 (diff) |
Fixed 'T' token to actually sync
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@492 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r-- | src/inspircd.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
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); |