summaryrefslogtreecommitdiff
path: root/include/users.h
diff options
context:
space:
mode:
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
*/