summaryrefslogtreecommitdiffstats
path: root/src/server/UserInfo.cpp
blob: e0239ebb769d20b2ab2c3cd7283c8a1158e11044 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include "UserInfo.hpp"

void UserInfo::SetRoom(ChatRoom *new_master)
{
    this->the_master = new_master;
}

const char *UserInfo::GetName() const
{
    return name;
}

void UserInfo::SetName(const char *n_name)
{
    strcpy(name, n_name);
}

const char *UserInfo::GetPassword() const
{
	return password;
}

void UserInfo::SetPassword(const char *pass)
{
	strcpy(password, pass);
}

void UserInfo::SetStatus(const enum_status n_status)
{
    state = n_status;
}