summaryrefslogtreecommitdiff
path: root/src/net/eathena/charserverhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-04 18:09:51 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-04 18:09:51 +0300
commit45cc2ca610613ee824e0549904edb33334b265a7 (patch)
treebdfd7badb19824a4fe849ba9de9bdd52737910e5 /src/net/eathena/charserverhandler.cpp
parentfa2383b7cb1fb53c2411af6bd04c4dbda4c7d3cb (diff)
downloadmanaplus-45cc2ca610613ee824e0549904edb33334b265a7.tar.gz
manaplus-45cc2ca610613ee824e0549904edb33334b265a7.tar.bz2
manaplus-45cc2ca610613ee824e0549904edb33334b265a7.tar.xz
manaplus-45cc2ca610613ee824e0549904edb33334b265a7.zip
Move processCharDeleteFailed from ea namespace into eathena and tmwa.
Diffstat (limited to 'src/net/eathena/charserverhandler.cpp')
-rw-r--r--src/net/eathena/charserverhandler.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/net/eathena/charserverhandler.cpp b/src/net/eathena/charserverhandler.cpp
index 49cde4480..5ced3761f 100644
--- a/src/net/eathena/charserverhandler.cpp
+++ b/src/net/eathena/charserverhandler.cpp
@@ -593,4 +593,18 @@ void CharServerHandler::processCharChangeSlot(Net::MessageIn &msg)
msg.readInt16("unused");
}
+void CharServerHandler::processCharDeleteFailed(Net::MessageIn &msg A_UNUSED)
+{
+ BLOCK_START("CharServerHandler::processCharDeleteFailed")
+ unlockCharSelectDialog();
+ msg.readUInt8("error");
+ // TRANSLATORS: error message
+ new OkDialog(_("Error"), _("Failed to delete character."),
+ // TRANSLATORS: ok dialog button
+ _("OK"),
+ DialogType::ERROR,
+ true, true, nullptr, 260);
+ BLOCK_END("CharServerHandler::processCharDeleteFailed")
+}
+
} // namespace EAthena