summaryrefslogtreecommitdiff
path: root/src/net/ea/chathandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-10-23 00:25:26 +0300
committerAndrei Karas <akaras@inbox.ru>2011-10-23 00:25:26 +0300
commitf1beb8d910253a31b9dd239071effa2d518ceee0 (patch)
treea350b4c4fb4aa720911aa21d7956200ddb904481 /src/net/ea/chathandler.cpp
parent2fcfbc4b1136265cbd463b9d3b721ce0cad52fe0 (diff)
downloadplus-f1beb8d910253a31b9dd239071effa2d518ceee0.tar.gz
plus-f1beb8d910253a31b9dd239071effa2d518ceee0.tar.bz2
plus-f1beb8d910253a31b9dd239071effa2d518ceee0.tar.xz
plus-f1beb8d910253a31b9dd239071effa2d518ceee0.zip
Add chat commands for using server side ignore for all whispers.
Commands: /serverignoreall and /serverunignoreall
Diffstat (limited to 'src/net/ea/chathandler.cpp')
-rw-r--r--src/net/ea/chathandler.cpp45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/net/ea/chathandler.cpp b/src/net/ea/chathandler.cpp
index 60af645be..35e8597f0 100644
--- a/src/net/ea/chathandler.cpp
+++ b/src/net/ea/chathandler.cpp
@@ -353,4 +353,49 @@ void ChatHandler::processMVP(Net::MessageIn &msg)
}
}
+void ChatHandler::processIgnoreAllResponse(Net::MessageIn &msg)
+{
+ int action = msg.readInt8();
+ int fail = msg.readInt8();
+ if (!localChatTab)
+ return;
+
+ switch (action)
+ {
+ case 0:
+ {
+ switch (fail)
+ {
+ case 0:
+ localChatTab->chatLog(_("All whispers ignored."),
+ BY_SERVER);
+ break;
+ default:
+ localChatTab->chatLog(_("All whispers ignore failed."),
+ BY_SERVER);
+ break;
+ }
+ break;
+ }
+ case 1:
+ {
+ switch (fail)
+ {
+ case 0:
+ localChatTab->chatLog(_("All whispers unignored."),
+ BY_SERVER);
+ break;
+ default:
+ localChatTab->chatLog(_("All whispers unignore failed."),
+ BY_SERVER);
+ break;
+ }
+ break;
+ }
+ default:
+ // unknown result
+ break;
+ }
+}
+
} // namespace Ea