diff options
| author | 2007-10-31 22:15:03 +0000 | |
|---|---|---|
| committer | 2007-10-31 22:15:03 +0000 | |
| commit | 6236cf5891a008fbdc8d97af34bb5dc0d39ad2ea (patch) | |
| tree | d648ad8cfbce79c7e09a9f78969ccbaeec99c5ae /include | |
| parent | Fix (?) stats chars (diff) | |
| download | inspircd++-6236cf5891a008fbdc8d97af34bb5dc0d39ad2ea.tar.gz inspircd++-6236cf5891a008fbdc8d97af34bb5dc0d39ad2ea.tar.bz2 inspircd++-6236cf5891a008fbdc8d97af34bb5dc0d39ad2ea.zip | |
Add XLine::SetCreateTime that removes gline_set_creation_time and friends
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8449 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
| -rw-r--r-- | include/xline.h | 6 |
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; |
