summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-08 02:59:29 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-08 02:59:29 +0000
commit74da82aef979d75eb1d1a2a56f12d742fd5d4c87 (patch)
tree510df7fadda67a2882e15fcca2937e9fd3abe5f2
parent545736adb5c4b8a3b1dc416f4e05ffb256b019cf (diff)
We're setting chanrec::creation in here and not chanrec::age, this can and will fuck up TS. Set Both.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6910 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/channels.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/channels.cpp b/src/channels.cpp
index ccb230005..74c617538 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -216,6 +216,7 @@ chanrec* chanrec::JoinUser(InspIRCd* Instance, userrec *user, const char* cn, bo
Ptr->modes[CM_TOPICLOCK] = Ptr->modes[CM_NOEXTERNAL] = 1;
Ptr->created = TS ? TS : Instance->Time();
+ Ptr->age = Ptr->created;
*Ptr->topic = 0;
*Ptr->setby = 0;
Ptr->topicset = 0;