summaryrefslogtreecommitdiff
path: root/src/chat-server/chatclient.hpp
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-07-28 20:14:23 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-07-28 20:14:23 +0000
commite166458f5425316f4f48aadd7007917ab876be17 (patch)
tree7ccc27db50bb6600cc4fee074485e3b886e58049 /src/chat-server/chatclient.hpp
parent32337eb103384ed8bdb7a43ee54ab550680db62b (diff)
downloadmanaserv-e166458f5425316f4f48aadd7007917ab876be17.tar.gz
manaserv-e166458f5425316f4f48aadd7007917ab876be17.tar.bz2
manaserv-e166458f5425316f4f48aadd7007917ab876be17.tar.xz
manaserv-e166458f5425316f4f48aadd7007917ab876be17.zip
Replaced user names by client pointers when handling channels, in order to reduce lookups in ChatHandler::sendInChannel.
Diffstat (limited to 'src/chat-server/chatclient.hpp')
-rw-r--r--src/chat-server/chatclient.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/chat-server/chatclient.hpp b/src/chat-server/chatclient.hpp
index c9578a50..40622afe 100644
--- a/src/chat-server/chatclient.hpp
+++ b/src/chat-server/chatclient.hpp
@@ -24,8 +24,14 @@
#ifndef _TMWSERV_CHATCLIENT_H_
#define _TMWSERV_CHATCLIENT_H_
+#include <string>
+#include <vector>
+
+#include "defines.h"
#include "net/netcomputer.hpp"
+class ChatChannel;
+
/**
* A client connected to the chat server. Via this class, the chat server
* keeps track of the character name and account level of a client.
@@ -43,6 +49,7 @@ class ChatClient : public NetComputer
}
std::string characterName;
+ std::vector< ChatChannel * > channels;
AccountLevel accountLevel;
};