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

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

const char *UserInfo::GetName() const
{
    if(name[0])
        return name;
    return 0;
}

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

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