summaryrefslogtreecommitdiff
path: root/include/users.h
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2018-07-30 18:50:34 +0100
committerPeter Powell <petpow@saberuk.com>2018-07-30 18:50:34 +0100
commitabbf70b2a35edaf17631e43027828011296924ad (patch)
tree62df618ad367cad9324cb1e91182790c22c9b5f8 /include/users.h
parent7bde9de9b3e25a285d82d93ef6b1d3ef9c597e43 (diff)
Rename User::fullname to realname and make it private.
Diffstat (limited to 'include/users.h')
-rw-r--r--include/users.h13
1 files changed, 6 insertions, 7 deletions
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
*/