54 const int allyCount =
msg.readUInt8(
"ally clans count");
55 const int antagonistCount =
msg.readUInt8(
"antagonist clans count");
56 for (
int f = 0; f < allyCount; f ++)
59 msg.readString(24,
"ally clan name"));
61 for (
int f = 0; f < antagonistCount; f ++)
64 msg.readString(24,
"antagonist clan name"));
96 const int chatMsgLength =
msg.readInt16(
"len") - 4 - 24;
97 if (chatMsgLength <= 0)
99 msg.readString(24,
"player name (unused)");
100 std::string chatMsg =
msg.readString(chatMsgLength,
"message");
103 reportAlways(
"received clan chat messages without clan.")
106 const size_t pos = chatMsg.find(
" : ", 0);
107 if (pos != std::string::npos)
109 const std::string sender_name = chatMsg.substr(0, pos);
110 chatMsg.erase(0, pos + 3);
#define reportAlways(...)
void chatLog(std::string line, ChatMsgTypeT own, const IgnoreRecord ignoreRecord, const TryRemoveColors tryRemoveColors)
void loadFromLogFile(const std::string &name)
bool getBoolValue(const std::string &key) const
const bool IgnoreRecord_false
bool msg(InputEvent &event)
bool info(InputEvent &event)
std::string trim(std::string const &str)
const ClanInfo * get(const int clanId)
void processClanOnlineCount(Net::MessageIn &msg)
void processClanInfo(Net::MessageIn &msg)
void processClanLeave(Net::MessageIn &msg)
void processClanChat(Net::MessageIn &msg)
std::vector< std::string > allyClans
std::vector< std::string > stats
std::vector< std::string > antagonistClans
const bool TryRemoveColors_true