summaryrefslogtreecommitdiff
path: root/src/net/ea/adminhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/ea/adminhandler.cpp')
-rw-r--r--src/net/ea/adminhandler.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/net/ea/adminhandler.cpp b/src/net/ea/adminhandler.cpp
index 6eb413e7c..4dd8083f3 100644
--- a/src/net/ea/adminhandler.cpp
+++ b/src/net/ea/adminhandler.cpp
@@ -22,13 +22,18 @@
#include "net/ea/adminhandler.h"
+#include "notifymanager.h"
+
#include "gui/chatconsts.h"
#include "net/chathandler.h"
+#include "net/messagein.h"
#include "net/serverfeatures.h"
#include "utils/stringutils.h"
+#include "resources/notifytypes.h"
+
#include <string>
#include "debug.h"
@@ -86,4 +91,12 @@ void AdminHandler::createItems(const int id, const int color,
}
}
+void AdminHandler::processKickAck(Net::MessageIn &msg)
+{
+ if (msg.readInt32() == 0)
+ NotifyManager::notify(NotifyTypes::KICK_FAIL);
+ else
+ NotifyManager::notify(NotifyTypes::KICK_SUCCEED);
+}
+
} // namespace Ea