diff options
author | Peter Powell <petpow@saberuk.com> | 2018-07-30 18:50:34 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2018-07-30 18:50:34 +0100 |
commit | abbf70b2a35edaf17631e43027828011296924ad (patch) | |
tree | 62df618ad367cad9324cb1e91182790c22c9b5f8 /include | |
parent | 7bde9de9b3e25a285d82d93ef6b1d3ef9c597e43 (diff) |
Rename User::fullname to realname and make it private.
Diffstat (limited to 'include')
-rw-r--r-- | include/modules/sql.h | 2 | ||||
-rw-r--r-- | include/users.h | 13 |
2 files changed, 7 insertions, 8 deletions
diff --git a/include/modules/sql.h b/include/modules/sql.h index 1f5bb7ff3..15e8260b6 100644 --- a/include/modules/sql.h +++ b/include/modules/sql.h @@ -260,7 +260,7 @@ inline void SQL::PopulateUserInfo(User* user, ParamMap& userinfo) userinfo["nick"] = user->nick; userinfo["host"] = user->GetRealHost(); userinfo["ip"] = user->GetIPString(); - userinfo["real"] = user->fullname; + userinfo["real"] = user->GetRealName(); userinfo["ident"] = user->ident; userinfo["server"] = user->server->GetName(); userinfo["uuid"] = user->uuid; diff --git a/include/users.h b/include/users.h index 9bca1d7a6..21a35645d 100644 --- a/include/users.h +++ b/include/users.h @@ -250,6 +250,9 @@ class CoreExport User : public Extensible /** The real hostname of this user. */ std::string realhost; + /** The real name of this user. */ + std::string realname; + /** The user's mode list. * Much love to the STL for giving us an easy to use bitset, saving us RAM. * if (modes[modeid]) is set, then the mode is set. @@ -308,10 +311,6 @@ class CoreExport User : public Extensible */ std::string ident; - /** The users full name. - */ - std::string fullname; - /** What snomasks are set on this user. * This functions the same as the above modes. */ @@ -371,6 +370,9 @@ class CoreExport User : public Extensible /** Retrieves this user's real hostname. */ const std::string& GetRealHost() const; + /** Retrieves this user's real name. */ + const std::string& GetRealName() const; + /** Get CIDR mask, using default range, for this user */ irc::sockets::cidr_mask GetCIDRMask(); @@ -704,9 +706,6 @@ class CoreExport User : public Extensible bool ChangeIdent(const std::string& newident); /** Change a users realname field. - * ALWAYS use this function, rather than writing User::fullname directly, - * as this triggers module events allowing the change to be syncronized to - * remote servers. * @param real The user's new real name * @return True if the change succeeded, false if otherwise */ |