diff options
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/eathena/chathandler.cpp | 16 | ||||
-rw-r--r-- | src/net/tmwa/chathandler.cpp | 19 |
2 files changed, 26 insertions, 9 deletions
diff --git a/src/net/eathena/chathandler.cpp b/src/net/eathena/chathandler.cpp index 22db67357..76603734c 100644 --- a/src/net/eathena/chathandler.cpp +++ b/src/net/eathena/chathandler.cpp @@ -557,7 +557,8 @@ void ChatHandler::processChatContinue(std::string chatMsg, allow = chatWindow->resortChatLog(chatMsg, own, channel, - false, true); + IgnoreRecord_false, + true); } const size_t pos = chatMsg.find(" : ", 0); @@ -638,7 +639,9 @@ void ChatHandler::processWhisperResponse(Net::MessageIn &msg) // TRANSLATORS: chat message strprintf(_("Message could not be sent, channel " "%s is not exists."), nick.c_str()), - ChatMsgType::BY_SERVER, false, false); + ChatMsgType::BY_SERVER, + IgnoreRecord_false, + false); if (!mSentWhispers.empty()) mSentWhispers.pop(); return; @@ -782,7 +785,9 @@ void ChatHandler::processJoinChannel(Net::MessageIn &msg) // TRANSLATORS: chat message strprintf(_("Can't open channel. Channel " "%s is not exists."), channel.c_str()), - ChatMsgType::BY_SERVER, false, false); + ChatMsgType::BY_SERVER, + IgnoreRecord_false, + false); break; case 1: @@ -873,7 +878,10 @@ void ChatHandler::processBeingChat(Net::MessageIn &msg) { allow = chatWindow->resortChatLog( removeColors(sender_name).append(" : ").append(chatMsg), - ChatMsgType::BY_OTHER, GENERAL_CHANNEL, false, true); + ChatMsgType::BY_OTHER, + GENERAL_CHANNEL, + IgnoreRecord_false, + true); } if (allow && being && player_relations.hasPermission(sender_name, diff --git a/src/net/tmwa/chathandler.cpp b/src/net/tmwa/chathandler.cpp index e870ba563..be04b2964 100644 --- a/src/net/tmwa/chathandler.cpp +++ b/src/net/tmwa/chathandler.cpp @@ -331,8 +331,11 @@ void ChatHandler::processChatContinue(std::string chatMsg, bool allow(true); if (chatWindow) { - allow = chatWindow->resortChatLog(chatMsg, ChatMsgType::BY_PLAYER, - channel, false, true); + allow = chatWindow->resortChatLog(chatMsg, + ChatMsgType::BY_PLAYER, + channel, + IgnoreRecord_false, + true); } if (channel.empty()) @@ -399,8 +402,11 @@ void ChatHandler::processGmChat(Net::MessageIn &msg) bool allow(true); if (chatWindow) { - allow = chatWindow->resortChatLog(chatMsg, ChatMsgType::BY_PLAYER, - channel, false, true); + allow = chatWindow->resortChatLog(chatMsg, + ChatMsgType::BY_PLAYER, + channel, + IgnoreRecord_false, + true); } if (channel.empty()) @@ -669,7 +675,10 @@ void ChatHandler::processBeingChat(Net::MessageIn &msg) { allow = chatWindow->resortChatLog( removeColors(sender_name).append(" : ").append(chatMsg), - ChatMsgType::BY_OTHER, channel, false, true); + ChatMsgType::BY_OTHER, + channel, + IgnoreRecord_false, + true); } if (allow && player_relations.hasPermission(sender_name, |