mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-22 11:38:29 +00:00
More UCS refactoring
This commit is contained in:
+6
-5
@@ -6,6 +6,7 @@
|
||||
#include "../common/timer.h"
|
||||
#include <string>
|
||||
#include <list>
|
||||
#include <vector>
|
||||
|
||||
class Client;
|
||||
|
||||
@@ -21,9 +22,9 @@ public:
|
||||
bool IsClientInChannel(Client *c);
|
||||
|
||||
int MemberCount(int Status);
|
||||
std::string GetName() { return Name; }
|
||||
const std::string &GetName() { return Name; }
|
||||
void SendMessageToChannel(std::string Message, Client* Sender);
|
||||
bool CheckPassword(std::string inPassword) { return ((Password.length() == 0) || (Password == inPassword)); }
|
||||
bool CheckPassword(std::string inPassword) { return Password.empty() || Password == inPassword; }
|
||||
void SetPassword(std::string inPassword);
|
||||
bool IsOwner(std::string Name) { return (Owner == Name); }
|
||||
void SetOwner(std::string inOwner);
|
||||
@@ -34,8 +35,8 @@ public:
|
||||
void AddInvitee(std::string Invitee);
|
||||
void RemoveInvitee(std::string Invitee);
|
||||
bool IsInvitee(std::string Invitee);
|
||||
void AddModerator(std::string Moderator);
|
||||
void RemoveModerator(std::string Modeerator);
|
||||
void AddModerator(const std::string &Moderator);
|
||||
void RemoveModerator(const std::string &Moderator);
|
||||
bool IsModerator(std::string Moderator);
|
||||
void AddVoice(std::string Voiced);
|
||||
void RemoveVoice(std::string Voiced);
|
||||
@@ -60,7 +61,7 @@ private:
|
||||
|
||||
LinkedList<Client*> ClientsInChannel;
|
||||
|
||||
std::list<std::string> Moderators;
|
||||
std::vector<std::string> Moderators;
|
||||
std::list<std::string> Invitees;
|
||||
std::list<std::string> Voiced;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user