65 outMsg.writeInt16(
CAST_S16(text.length() + 4 + 1),
"len");
66 outMsg.writeString(text,
CAST_S32(text.length() + 1),
"message");
75 outMsg.writeInt16(
CAST_S16(mes.length() + 4 + 1),
"len");
76 outMsg.writeString(mes,
CAST_S32(mes.length() + 1),
"message");
83 outMsg.writeInt16(
CAST_S16(mes.length() + 4),
"len");
84 outMsg.writeString(mes,
CAST_S32(mes.length()),
"message");
88 const std::string &
restrict text)
const
91 outMsg.writeInt16(
CAST_S16(text.length() + 28),
"len");
92 outMsg.writeString(recipient, 24,
"recipient nick");
93 outMsg.writeString(text,
CAST_S32(text.length()),
"message");
98 const std::string &
restrict text)
const
101 talk(
"\302\202" + text);
116 std::string line = args;
123 size_t pos = line.find(
' ');
124 if (pos != std::string::npos)
126 str = line.substr(0, pos);
130 line = line.substr(pos + 1);
131 pos = line.find(
' ');
142 while (pos != std::string::npos)
144 str = line.substr(0, pos);
146 line = line.substr(pos + 1);
147 pos = line.find(
' ');
161 switch (tolower(line[0]))
165 outMsg.writeInt8(
CAST_U8(i),
"raw");
170 outMsg.writeInt16(
CAST_S16(i),
"raw");
175 outMsg.writeInt32(
CAST_S32(i),
"raw");
194 outMsg.writeString(nick, 24,
"nick");
195 outMsg.writeInt8(0,
"flag");
201 outMsg.writeString(nick, 24,
"nick");
202 outMsg.writeInt8(1,
"flag");
210 const std::string &password
A_UNUSED,
221 const std::string &password
A_UNUSED)
const
236 std::string action =
strprintf(
"\302\202\303 %s", text.c_str());
246 const std::string &passwordt
A_UNUSED,
247 const std::string &titlet
A_UNUSED)
const
Net::ChatHandler * chatHandler
const std::string & getName() const
void writeInt16(const int16_t value, const char *const str)
void privateMessage(const std::string &recipient, const std::string &text) const
void joinChat(const ChatObject *const chat, const std::string &password) const
void ignore(const std::string &nick) const
void talkPet(const std::string &text) const
void leaveChatRoom() const
void unIgnore(const std::string &nick) const
void talk(const std::string &text) const
static void processRaw(MessageOut &outMsg, const std::string &line)
void createChatRoom(const std::string &title, const std::string &password, const int limit, const bool isPublic) const
void requestIgnoreList() const
void channelMessage(const std::string &channel, const std::string &text) const
void setChatRoomOwner(const std::string &nick) const
void joinChannel(const std::string &channel) const
void talkRaw(const std::string &text) const
void sendRaw(const std::string &args) const
void kickFromChatRoom(const std::string &nick) const
void partChannel(const std::string &channel) const
void battleTalk(const std::string &text) const
void setChatRoomOptions(const int limit, const bool isPublic, const std::string &password, const std::string &title) const
const std::string TRADE_CHANNEL
const std::string GM_CHANNEL
LocalPlayer * localPlayer
#define createOutPacket(name)
WhisperQueue mSentWhispers
void runCommand(const std::string &command, const std::string ¶ms)
std::string strprintf(const char *const format,...)
uint32_t parseNumber(const std::string &str)
unsigned int tmwServerVersion