diff options
author | Attila Molnar <attilamolnar@hush.com> | 2016-12-30 18:44:39 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2016-12-30 18:44:39 +0100 |
commit | 0c3b041d1b36d1515913da5230399b379a802b81 (patch) | |
tree | 0f7b33dab50fda247d8f51edb418bc3c6b5ecb55 /include/users.h | |
parent | 688275707a331a94892408408eb74d7ec20c7c1f (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.h | 6 |
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 |