summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-03-03 15:07:17 +0100
committerAttila Molnar <attilamolnar@hush.com>2014-03-03 15:07:17 +0100
commitb1173ca66a3a3dc3d1ae0b3f305e1b37e3d5c982 (patch)
tree66fd0557af47b1e6282f942830766f6a96ec87b6 /include
parenta5ca8b892c384d5926bf03353ef878023f0f573d (diff)
Update nick timestamps in User::ChangeNick(), pass the new TS in a parameter
Diffstat (limited to 'include')
-rw-r--r--include/users.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/users.h b/include/users.h
index 24783b304..5ab791eee 100644
--- a/include/users.h
+++ b/include/users.h
@@ -469,7 +469,7 @@ class CoreExport User : public Extensible
* @param newnick The nickname to change to
* @return True if the nickchange was successful.
*/
- bool ForceNickChange(const std::string& newnick) { return ChangeNick(newnick, true); }
+ bool ForceNickChange(const std::string& newnick, time_t newts = 0) { return ChangeNick(newnick, true, newts); }
/** Oper down.
* This will clear the +o usermode and unset the user's oper type
@@ -620,7 +620,7 @@ class CoreExport User : public Extensible
* @param force True if the change is being forced (should not be blocked by modes like +N)
* @return True if the change succeeded
*/
- bool ChangeNick(const std::string& newnick, bool force = false);
+ bool ChangeNick(const std::string& newnick, bool force = false, time_t newts = 0);
/** Send a command to all local users from this user
* The command given must be able to send text with the