summaryrefslogtreecommitdiff
path: root/include/users.h
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2016-12-30 18:44:39 +0100
committerAttila Molnar <attilamolnar@hush.com>2016-12-30 18:44:39 +0100
commit0c3b041d1b36d1515913da5230399b379a802b81 (patch)
tree0f7b33dab50fda247d8f51edb418bc3c6b5ecb55 /include/users.h
parent688275707a331a94892408408eb74d7ec20c7c1f (diff)
Deduplicate nickname overruling code
Create LocalUser::OverruleNick(), call it from User::ChangeNick() and the UID handler in spanningtree
Diffstat (limited to 'include/users.h')
-rw-r--r--include/users.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/users.h b/include/users.h
index fc31a8297..8cf78a585 100644
--- a/include/users.h
+++ b/include/users.h
@@ -872,6 +872,12 @@ class CoreExport LocalUser : public User, public insp::intrusive_list_node<Local
* @return True if the user can set or unset this mode.
*/
bool HasModePermission(const ModeHandler* mh) const;
+
+ /** Change nick to uuid, unset REG_NICK and send a nickname overruled numeric.
+ * This is called when another user (either local or remote) needs the nick of this user and this user
+ * isn't registered.
+ */
+ void OverruleNick();
};
class RemoteUser : public User