Change /CHECK <#channel> to correctly report timestamp since it might have been TS synced after creation.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10954 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
peavey 2009-01-09 20:37:03 +00:00
parent 0268121676
commit 92796ffe64

View File

@ -87,12 +87,12 @@ class CommandCheck : public Command
else if (targchan)
{
/* /check on a channel */
time_t creation_time = targchan->created;
time_t creation_time = targchan->age;
time_t topic_time = targchan->topicset;
mytime = gmtime(&creation_time);
strftime(timebuf, 59, "%Y/%m/%d - %H:%M:%S", mytime);
user->WriteServ(checkstr + " created " + timebuf);
user->WriteServ(checkstr + " timestamp " + timebuf);
if (targchan->topic[0] != 0)
{