summaryrefslogtreecommitdiff
path: root/include/xline.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/xline.h')
-rw-r--r--include/xline.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/xline.h b/include/xline.h
index e395c8fba..c6d85187a 100644
--- a/include/xline.h
+++ b/include/xline.h
@@ -62,6 +62,12 @@ class CoreExport XLine : public classbase
free(source);
}
+ virtual void SetCreateTime(time_t created)
+ {
+ set_time = created;
+ expiry = created + duration;
+ }
+
/** Returns true whether or not the given user is covered by this line.
*/
virtual bool Matches(User *u) = 0;