diff options
| author | Adam <Adam@anope.org> | 2010-09-10 20:31:31 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2010-09-10 20:31:31 -0400 |
| commit | f00e76d30a86acf0f18bcde5647eedd50de50569 (patch) | |
| tree | 04af81a883ea6e71ec36e35a2822487c7f8192c6 /include/channels.h | |
| parent | 9eb7562bee7f2a52cf91b0ab0ebc10351f2a46f2 (diff) | |
Added Anope::CurTime to keep us from calling time() everywhere
Diffstat (limited to 'include/channels.h')
| -rw-r--r-- | include/channels.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/channels.h b/include/channels.h index ec886c9ca..73c97d3aa 100644 --- a/include/channels.h +++ b/include/channels.h @@ -23,7 +23,7 @@ struct UserData void Clear() { - last_use = last_start = time(NULL); + last_use = last_start = Anope::CurTime; lines = times = 0; lastline.clear(); } @@ -77,7 +77,7 @@ class CoreExport Channel : public Extensible, public Flags<ChannelFlags> * @param name The channel name * @param ts The time the channel was created */ - Channel(const Anope::string &nname, time_t ts = time(NULL)); + Channel(const Anope::string &nname, time_t ts = Anope::CurTime); /** Default destructor */ |
