From 0ebdce30ee61d7b038e81bc64ae7d1e27d98a144 Mon Sep 17 00:00:00 2001 From: Bertram Date: Tue, 11 Aug 2009 00:56:14 +0200 Subject: Bugfixed the TMWserv client version. --- src/net/tmwserv/chathandler.cpp | 2 +- src/net/tmwserv/partyhandler.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/net/tmwserv/chathandler.cpp b/src/net/tmwserv/chathandler.cpp index ad3ae49b..c95f6ac5 100644 --- a/src/net/tmwserv/chathandler.cpp +++ b/src/net/tmwserv/chathandler.cpp @@ -298,7 +298,7 @@ void ChatHandler::handleChannelEvent(MessageIn &msg) std::string user1 = line.substr(0, first); std::string user2 = line.substr(first+1, line.length()); channel->getTab()->chatLog(strprintf(_("%s has kicked %s."), - user1, user2), BY_CHANNEL); + user1.c_str(), user2.c_str()), BY_CHANNEL); } break; default: diff --git a/src/net/tmwserv/partyhandler.cpp b/src/net/tmwserv/partyhandler.cpp index 2af0e4cb..220d20c0 100644 --- a/src/net/tmwserv/partyhandler.cpp +++ b/src/net/tmwserv/partyhandler.cpp @@ -100,7 +100,7 @@ void PartyHandler::handleMessage(MessageIn &msg) int id = msg.readInt16(); // being id std::string name = msg.readString(); - localChatTab->chatLog(strprintf(_("%s joined the party.", + localChatTab->chatLog(strprintf(_("%s joined the party."), name.c_str())); if (!player_node->isInParty()) -- cgit v1.2.3-70-g09d2