summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/net/tmwserv/chathandler.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/net/tmwserv/chathandler.cpp b/src/net/tmwserv/chathandler.cpp
index 5a0730a6..65fd062c 100644
--- a/src/net/tmwserv/chathandler.cpp
+++ b/src/net/tmwserv/chathandler.cpp
@@ -180,12 +180,7 @@ void ChatHandler::handlePrivateMessage(MessageIn &msg)
std::string userNick = msg.readString();
std::string chatMsg = msg.readString();
- if (!chatWindow->tabExists(userNick))
- {
- // TODO: proper whisper tabs
- //chatWindow->createNewChannelTab(userNick);
- }
- chatWindow->chatLog(userNick + ": " + chatMsg, BY_OTHER, userNick);
+ chatWindow->whisper(userNick, chatMsg);
}
void ChatHandler::handleAnnouncement(MessageIn &msg)