From ee1fc0b63cb7f27df85c43474497b805df6e31f5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 11 Dec 2017 19:10:19 +0300 Subject: Remove default parameters from ChatTab::chatLog. --- src/net/eathena/guildrecv.cpp | 63 +++++++++++++++++++++++++++++++------------ 1 file changed, 46 insertions(+), 17 deletions(-) (limited to 'src/net/eathena/guildrecv.cpp') diff --git a/src/net/eathena/guildrecv.cpp b/src/net/eathena/guildrecv.cpp index fd7570896..c0be1be01 100644 --- a/src/net/eathena/guildrecv.cpp +++ b/src/net/eathena/guildrecv.cpp @@ -127,34 +127,54 @@ void GuildRecv::processGuildBasicInfo(Net::MessageIn &msg) showBasicInfo = false; // TRANSLATORS: guild info message guildTab->chatLog(strprintf(_("Guild name: %s"), - name.c_str()), ChatMsgType::BY_SERVER); + name.c_str()), + ChatMsgType::BY_SERVER, + IgnoreRecord_false, + TryRemoveColors_true); if (!master.empty()) { // TRANSLATORS: guild info message guildTab->chatLog(strprintf(_("Guild master: %s"), - master.c_str()), ChatMsgType::BY_SERVER); + master.c_str()), + ChatMsgType::BY_SERVER, + IgnoreRecord_false, + TryRemoveColors_true); } // TRANSLATORS: guild info message guildTab->chatLog(strprintf(_("Guild level: %d"), level), - ChatMsgType::BY_SERVER); + ChatMsgType::BY_SERVER, + IgnoreRecord_false, + TryRemoveColors_true); // TRANSLATORS: guild info message - guildTab->chatLog(strprintf(_("Online members: %d"), - members), ChatMsgType::BY_SERVER); + guildTab->chatLog(strprintf(_("Online members: %d"), members), + ChatMsgType::BY_SERVER, + IgnoreRecord_false, + TryRemoveColors_true); // TRANSLATORS: guild info message - guildTab->chatLog(strprintf(_("Max members: %d"), - maxMembers), ChatMsgType::BY_SERVER); + guildTab->chatLog(strprintf(_("Max members: %d"), maxMembers), + ChatMsgType::BY_SERVER, + IgnoreRecord_false, + TryRemoveColors_true); // TRANSLATORS: guild info message - guildTab->chatLog(strprintf(_("Average level: %d"), - avgLevel), ChatMsgType::BY_SERVER); + guildTab->chatLog(strprintf(_("Average level: %d"), avgLevel), + ChatMsgType::BY_SERVER, + IgnoreRecord_false, + TryRemoveColors_true); // TRANSLATORS: guild info message guildTab->chatLog(strprintf(_("Guild exp: %d"), exp), - ChatMsgType::BY_SERVER); + ChatMsgType::BY_SERVER, + IgnoreRecord_false, + TryRemoveColors_true); // TRANSLATORS: guild info message - guildTab->chatLog(strprintf(_("Guild next exp: %d"), - nextExp), ChatMsgType::BY_SERVER); + guildTab->chatLog(strprintf(_("Guild next exp: %d"), nextExp), + ChatMsgType::BY_SERVER, + IgnoreRecord_false, + TryRemoveColors_true); // TRANSLATORS: guild info message - guildTab->chatLog(strprintf(_("Guild castle: %s"), - castle.c_str()), ChatMsgType::BY_SERVER); + guildTab->chatLog(strprintf(_("Guild castle: %s"), castle.c_str()), + ChatMsgType::BY_SERVER, + IgnoreRecord_false, + TryRemoveColors_true); } Guild *const g = Guild::getGuild(CAST_S16(guildId)); @@ -381,8 +401,14 @@ void GuildRecv::processGuildNotice(Net::MessageIn &msg) { const std::string msg1 = msg.readString(60, "msg1"); const std::string msg2 = msg.readString(120, "msg2"); - guildTab->chatLog(msg1, ChatMsgType::BY_SERVER); - guildTab->chatLog(msg2, ChatMsgType::BY_SERVER); + guildTab->chatLog(msg1, + ChatMsgType::BY_SERVER, + IgnoreRecord_false, + TryRemoveColors_true); + guildTab->chatLog(msg2, + ChatMsgType::BY_SERVER, + IgnoreRecord_false, + TryRemoveColors_true); } else { @@ -498,7 +524,10 @@ void GuildRecv::processGuildMessage(Net::MessageIn &msg) } else { - guildTab->chatLog(chatMsg, ChatMsgType::BY_SERVER); + guildTab->chatLog(chatMsg, + ChatMsgType::BY_SERVER, + IgnoreRecord_false, + TryRemoveColors_true); } } else -- cgit v1.2.3-70-g09d2