diff options
| author | 2008-11-01 23:02:23 +0000 | |
|---|---|---|
| committer | 2008-11-01 23:02:23 +0000 | |
| commit | 78f26492a65b438f5b87f1574ed7785fd77ae2f0 (patch) | |
| tree | 769bec57879b1efa3ae37e0d8cb7b8de29b62452 /src/users.cpp | |
| parent | Fix opercert to behave correctly, patch from and tested by dz -- thanks! (diff) | |
Second attempt at time() -> SI->Time(), now problems with the original were fixed. (SI::TIME was not initialised).
Thanks Namegduf!
(Please test, all, valdebug etc, report odd behaviour/warnings!)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10783 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/users.cpp')
| -rw-r--r-- | src/users.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/users.cpp b/src/users.cpp index 848f2a1eb..0a196d798 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -398,7 +398,7 @@ const std::string& User::GetFullRealHost() bool User::IsInvited(const irc::string &channel) { - time_t now = time(NULL); + time_t now = ServerInstance->Time(); InvitedList::iterator safei; for (InvitedList::iterator i = invites.begin(); i != invites.end(); ++i) { @@ -420,7 +420,7 @@ bool User::IsInvited(const irc::string &channel) InvitedList* User::GetInviteList() { - time_t now = time(NULL); + time_t now = ServerInstance->Time(); /* Weed out expired invites here. */ InvitedList::iterator safei; for (InvitedList::iterator i = invites.begin(); i != invites.end(); ++i) @@ -438,7 +438,7 @@ InvitedList* User::GetInviteList() void User::InviteTo(const irc::string &channel, time_t invtimeout) { - time_t now = time(NULL); + time_t now = ServerInstance->Time(); if (invtimeout != 0 && now > invtimeout) return; /* Don't add invites that are expired from the get-go. */ for (InvitedList::iterator i = invites.begin(); i != invites.end(); ++i) { |
