summaryrefslogtreecommitdiff
path: root/src/net/tmwa/chathandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-10-30 03:46:59 +0300
committerAndrei Karas <akaras@inbox.ru>2011-10-30 03:46:59 +0300
commitece00592ecd93f7a96db0ca82589d00846e2f938 (patch)
treec36bde1e1a46d11ee47438d0debaa8317cd0db6e /src/net/tmwa/chathandler.cpp
parentd14bb7a27ee23cc83b3af1db2f1976eaaa55d78a (diff)
parent2c3c118c03ece5cad2b73affffbcbbc5a5746c7a (diff)
downloadmv-stripped1.1.10.30.tar.gz
mv-stripped1.1.10.30.tar.bz2
mv-stripped1.1.10.30.tar.xz
mv-stripped1.1.10.30.zip
Merge branch 'master' into strippedstripped1.1.10.30
Diffstat (limited to 'src/net/tmwa/chathandler.cpp')
-rw-r--r--src/net/tmwa/chathandler.cpp17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/net/tmwa/chathandler.cpp b/src/net/tmwa/chathandler.cpp
index 4e4318595..fe6592d93 100644
--- a/src/net/tmwa/chathandler.cpp
+++ b/src/net/tmwa/chathandler.cpp
@@ -60,6 +60,7 @@ ChatHandler::ChatHandler()
SMSG_WHISPER_RESPONSE,
SMSG_GM_CHAT,
SMSG_MVP, // MVP
+ SMSG_IGNORE_ALL_RESPONSE,
0
};
handledMessages = _messages;
@@ -96,6 +97,9 @@ void ChatHandler::handleMessage(Net::MessageIn &msg)
processMVP(msg);
break;
+ case SMSG_IGNORE_ALL_RESPONSE:
+ processIgnoreAllResponse(msg);
+
default:
break;
}
@@ -249,5 +253,16 @@ void ChatHandler::processRaw(MessageOut &outMsg, std::string &line)
}
}
-} // namespace TmwAthena
+void ChatHandler::ignoreAll()
+{
+ MessageOut outMsg(CMSG_IGNORE_ALL);
+ outMsg.writeInt8(0);
+}
+void ChatHandler::unIgnoreAll()
+{
+ MessageOut outMsg(CMSG_IGNORE_ALL);
+ outMsg.writeInt8(1);
+}
+
+} // namespace TmwAthena