summaryrefslogtreecommitdiff
path: root/src/net/ea/chathandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-16 16:15:34 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-16 16:15:34 +0300
commitfe6a120ea38daaad39f6952a886c20269cfedca6 (patch)
tree4595d63a2ab9764873657182fbf2ab2b985474bf /src/net/ea/chathandler.cpp
parent6279b10249efa59b3161b014899465fe4bb08da4 (diff)
downloadplus-fe6a120ea38daaad39f6952a886c20269cfedca6.tar.gz
plus-fe6a120ea38daaad39f6952a886c20269cfedca6.tar.bz2
plus-fe6a120ea38daaad39f6952a886c20269cfedca6.tar.xz
plus-fe6a120ea38daaad39f6952a886c20269cfedca6.zip
Move chatmsgtype into separate file.
Diffstat (limited to 'src/net/ea/chathandler.cpp')
-rw-r--r--src/net/ea/chathandler.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/net/ea/chathandler.cpp b/src/net/ea/chathandler.cpp
index cc43de8cd..c880de0f6 100644
--- a/src/net/ea/chathandler.cpp
+++ b/src/net/ea/chathandler.cpp
@@ -107,7 +107,7 @@ void ChatHandler::processWhisperResponse(Net::MessageIn &msg)
chatWindow->addWhisper(nick,
// TRANSLATORS: chat message
strprintf(_("Whisper could not be "
- "sent, %s is offline."), nick.c_str()), BY_SERVER);
+ "sent, %s is offline."), nick.c_str()), ChatMsgType::BY_SERVER);
}
break;
case 0x02:
@@ -117,7 +117,7 @@ void ChatHandler::processWhisperResponse(Net::MessageIn &msg)
// TRANSLATORS: chat message
strprintf(_("Whisper could not "
"be sent, ignored by %s."), nick.c_str()),
- BY_SERVER);
+ ChatMsgType::BY_SERVER);
}
break;
default:
@@ -256,7 +256,7 @@ void ChatHandler::processWhisper(Net::MessageIn &msg) const
}
else
{
- localChatTab->chatLog(chatMsg, BY_SERVER);
+ localChatTab->chatLog(chatMsg, ChatMsgType::BY_SERVER);
}
}
BLOCK_END("ChatHandler::processWhisper")
@@ -329,7 +329,7 @@ void ChatHandler::processBeingChat(Net::MessageIn &msg,
PlayerRelation::SPEECH_LOG) && chatWindow)
{
allow = chatWindow->resortChatLog(removeColors(sender_name)
- .append(" : ").append(chatMsg), BY_OTHER, channel, false, true);
+ .append(" : ").append(chatMsg), ChatMsgType::BY_OTHER, channel, false, true);
}
if (allow && player_relations.hasPermission(sender_name,
@@ -367,7 +367,7 @@ void ChatHandler::processChat(Net::MessageIn &msg, const bool normalChat,
bool allow(true);
if (chatWindow)
{
- allow = chatWindow->resortChatLog(chatMsg, BY_PLAYER,
+ allow = chatWindow->resortChatLog(chatMsg, ChatMsgType::BY_PLAYER,
channel, false, true);
}