summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-07-03 12:27:24 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-07-03 12:27:24 +0200
commit393cc8f9d65aefd92628115edae341562ea440e7 (patch)
tree65265c2c1e162cf228c0ea55ce5081c27bf1645f /include
parentbee8625fbe375f55053d3709b72a2972fbf6ba84 (diff)
Remove now needless User::ForceNickChange()
Change call sites to call ChangeNick()
Diffstat (limited to 'include')
-rw-r--r--include/users.h12
1 files changed, 1 insertions, 11 deletions
diff --git a/include/users.h b/include/users.h
index 0f8154bef..4029daa53 100644
--- a/include/users.h
+++ b/include/users.h
@@ -462,15 +462,6 @@ class CoreExport User : public Extensible
*/
void Oper(OperInfo* info);
- /** Force a nickname change.
- * If the nickname change fails (for example, because the nick in question
- * already exists) this function will return false, and you must then either
- * output an error message, or quit the user for nickname collision.
- * @param newnick The nickname to change to
- * @return True if the nickchange was successful.
- */
- 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
*/
@@ -598,10 +589,9 @@ class CoreExport User : public Extensible
/** Change a user's nick
* @param newnick The new nick
- * @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, time_t newts = 0);
+ bool ChangeNick(const std::string& newnick, time_t newts = 0);
/** Remove this user from all channels they are on, and delete any that are now empty.
* This is used by QUIT, and will not send part messages!