summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2006-03-19 20:43:10 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2006-03-19 20:43:10 +0000
commit654d24e74c56d240b8d622840c135e22a029636d (patch)
tree5eb8b94f7832bdbb6d21c7ded6e6da6b5f8f3464 /src/net
parent3ddaec5f355ed1d231514cf0a863c4b9e35cf2a6 (diff)
downloadmana-client-654d24e74c56d240b8d622840c135e22a029636d.tar.gz
mana-client-654d24e74c56d240b8d622840c135e22a029636d.tar.bz2
mana-client-654d24e74c56d240b8d622840c135e22a029636d.tar.xz
mana-client-654d24e74c56d240b8d622840c135e22a029636d.zip
Unreverted latest change by Doener due to my lack of proper communication abilities.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/chathandler.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net/chathandler.cpp b/src/net/chathandler.cpp
index 97e8186d..9095a4e1 100644
--- a/src/net/chathandler.cpp
+++ b/src/net/chathandler.cpp
@@ -25,7 +25,6 @@
#include <SDL_types.h>
#include <string>
-#include <sstream>
#include "messagein.h"
#include "protocol.h"
@@ -36,6 +35,8 @@
#include "../gui/chat.h"
+#include "../utils/tostring.h"
+
extern Being *player_node;
ChatHandler::ChatHandler()
@@ -55,7 +56,6 @@ void ChatHandler::handleMessage(MessageIn *msg)
{
Being *being;
std::string chatMsg;
- std::stringstream ss;
Sint16 chatMsgLength;
switch (msg->getId())
@@ -105,8 +105,8 @@ void ChatHandler::handleMessage(MessageIn *msg)
break;
case SMSG_WHO_ANSWER:
- ss << "Online users: " << msg->readInt32();
- chatWindow->chatLog(ss.str(), BY_SERVER);
+ chatWindow->chatLog("Online users: " + toString(msg->readInt32()),
+ BY_SERVER);
break;
case 0x010c: