summaryrefslogtreecommitdiff
path: root/src/net/ea/chathandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/ea/chathandler.cpp')
-rw-r--r--src/net/ea/chathandler.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/net/ea/chathandler.cpp b/src/net/ea/chathandler.cpp
index 26af36dd..db89e316 100644
--- a/src/net/ea/chathandler.cpp
+++ b/src/net/ea/chathandler.cpp
@@ -30,7 +30,7 @@
#include "beingmanager.h"
#include "game.h"
#include "localplayer.h"
-#include "player_relations.h"
+#include "playerrelations.h"
#include "gui/widgets/chattab.h"
@@ -40,8 +40,6 @@
#include <string>
-#define SERVER_NAME "Server"
-
Net::ChatHandler *chatHandler;
namespace EAthena {
@@ -96,7 +94,7 @@ void ChatHandler::handleMessage(MessageIn &msg)
chatMsg = msg.readString(chatMsgLength);
- if (nick != SERVER_NAME)
+ if (nick != "Server")
{
if (player_relations.hasPermission(nick, PlayerRelation::WHISPER))
chatWindow->whisper(nick, chatMsg);