diff options
author | Adam <Adam@anope.org> | 2012-10-14 01:05:24 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-10-14 01:05:24 -0400 |
commit | 4fdc157f68d2034c243563269ae12b5c27885a18 (patch) | |
tree | 85c8828a7e4fbb1423e35eee40849a33ec4c08c4 /include/users.h | |
parent | 0a950669cb18d297d1cf7cf9c57570653680e117 (diff) |
Better clarify signon vs timestamp and allow updating users timestamp to an ircd given value from NICK
Diffstat (limited to 'include/users.h')
-rw-r--r-- | include/users.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/users.h b/include/users.h index 502cc0a7c..8757778b3 100644 --- a/include/users.h +++ b/include/users.h @@ -60,8 +60,8 @@ class CoreExport User : public virtual Base, public Extensible, public CommandRe Anope::string fingerprint; /* SSL Fingerprint */ Anope::string ip; /* User's IP */ Server *server; /* Server user is connected to */ - time_t timestamp; /* Timestamp of the nick */ - time_t my_signon; /* When did _we_ see the user? */ + time_t signon; /* When the user signed on. Set on connect and never modified. */ + time_t timestamp; /* Timestamp of the nick. Updated when the nick changes. */ bool SuperAdmin; /* is SuperAdmin on or off? */ /* Channels the user is in */ @@ -98,8 +98,10 @@ class CoreExport User : public virtual Base, public Extensible, public CommandRe /** Update the nickname of a user record accordingly, should be * called from ircd protocol. + * @param newnick The new username + * @param ts The time the nick was changed, User::timestamp will be updated to this. */ - void ChangeNick(const Anope::string &newnick); + void ChangeNick(const Anope::string &newnick, time_t ts = Anope::CurTime); /** Update the displayed (vhost) of a user record. * This is used (if set) instead of real host. |