aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-01-31 14:00:34 +0000
committerGravatar Sadie Powell2021-01-31 14:00:34 +0000
commit2b2d37ff506dd02f546585fa345ceb56e8007697 (patch)
tree89a4a0c472dd6855577b6e97f478b0a0806da5b2 /include
parentMove sendmsglist to above the functions in LocalUser. (diff)
Make MyClass private and move everything to GetClass.
Diffstat (limited to 'include')
-rw-r--r--include/users.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/include/users.h b/include/users.h
index 350f6b2f3..cf4d9d395 100644
--- a/include/users.h
+++ b/include/users.h
@@ -663,6 +663,9 @@ typedef unsigned int already_sent_t;
class CoreExport LocalUser : public User, public insp::intrusive_list_node<LocalUser>
{
private:
+ /** The connect class this user is in. */
+ std::shared_ptr<ConnectClass> connectclass;
+
/** Message list, can be passed to the two parameter Send(). */
static ClientProtocol::MessageList sendmsglist;
@@ -712,14 +715,10 @@ class CoreExport LocalUser : public User, public insp::intrusive_list_node<Local
*/
std::string password;
- /** Contains a pointer to the connect class a user is on from
- */
- std::shared_ptr<ConnectClass> MyClass;
-
/** Get the connect class which this user belongs to.
* @return A pointer to this user's connect class.
*/
- std::shared_ptr<ConnectClass> GetClass() const { return MyClass; }
+ std::shared_ptr<ConnectClass> GetClass() const { return connectclass; }
/** Call this method to find the matching \<connect> for a user, and to check them against it.
*/