summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-11 18:31:02 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-11 18:31:02 +0300
commitffac5076dcc94ee88ce68d351de071ab8f830a77 (patch)
tree1f5c3b8ddf9ba1056521d19d1b4b7c0214f9daf0
parent64d47f267be567cf259de29982acfed7eb76111e (diff)
downloadplus-ffac5076dcc94ee88ce68d351de071ab8f830a77.tar.gz
plus-ffac5076dcc94ee88ce68d351de071ab8f830a77.tar.bz2
plus-ffac5076dcc94ee88ce68d351de071ab8f830a77.tar.xz
plus-ffac5076dcc94ee88ce68d351de071ab8f830a77.zip
eathena: add packet CMSG_ADMIN_ID_TO_LOGIN 0x01df.
-rw-r--r--src/net/adminhandler.h2
-rw-r--r--src/net/eathena/adminhandler.cpp9
-rw-r--r--src/net/eathena/adminhandler.h2
-rw-r--r--src/net/eathena/protocol.h1
-rw-r--r--src/net/tmwa/adminhandler.cpp4
-rw-r--r--src/net/tmwa/adminhandler.h2
6 files changed, 20 insertions, 0 deletions
diff --git a/src/net/adminhandler.h b/src/net/adminhandler.h
index 36ce36369..df4db1b64 100644
--- a/src/net/adminhandler.h
+++ b/src/net/adminhandler.h
@@ -81,6 +81,8 @@ class AdminHandler notfinal
virtual void resetStats() const = 0;
virtual void resetSkills() const = 0;
+
+ virtual void requestLogin(const Being *const being) const = 0;
};
} // namespace Net
diff --git a/src/net/eathena/adminhandler.cpp b/src/net/eathena/adminhandler.cpp
index d99af7d1e..0d677a413 100644
--- a/src/net/eathena/adminhandler.cpp
+++ b/src/net/eathena/adminhandler.cpp
@@ -153,4 +153,13 @@ void AdminHandler::muteName(const std::string &name) const
outMsg.writeString(name, 24, "name");
}
+void AdminHandler::requestLogin(const Being *const being) const
+{
+ if (!being)
+ return;
+
+ MessageOut outMsg(CMSG_ADMIN_ID_TO_LOGIN);
+ outMsg.writeInt32(being->getId(), "account id");
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/adminhandler.h b/src/net/eathena/adminhandler.h
index 819c02ad8..59dec3cdf 100644
--- a/src/net/eathena/adminhandler.h
+++ b/src/net/eathena/adminhandler.h
@@ -65,6 +65,8 @@ class AdminHandler final : public MessageHandler, public Ea::AdminHandler
const int limit) const override final;
void muteName(const std::string &name) const override final;
+
+ void requestLogin(const Being *const being) const override final;
};
} // namespace EAthena
diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h
index fcfced256..d93d3698e 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -307,6 +307,7 @@
#define CMSG_ADMIN_RECALL 0x01bd
#define CMSG_ADMIN_MUTE 0x0149
#define CMSG_ADMIN_MUTE_NAME 0x0212
+#define CMSG_ADMIN_ID_TO_LOGIN 0x01df
#define CMSG_GUILD_CHECK_MASTER 0x014d
#define CMSG_GUILD_REQUEST_INFO 0x014f
diff --git a/src/net/tmwa/adminhandler.cpp b/src/net/tmwa/adminhandler.cpp
index b07a650f9..8e654d737 100644
--- a/src/net/tmwa/adminhandler.cpp
+++ b/src/net/tmwa/adminhandler.cpp
@@ -138,4 +138,8 @@ void AdminHandler::muteName(const std::string &name A_UNUSED) const
{
}
+void AdminHandler::requestLogin(const Being *const being A_UNUSED) const
+{
+}
+
} // namespace TmwAthena
diff --git a/src/net/tmwa/adminhandler.h b/src/net/tmwa/adminhandler.h
index 9c3ad6c36..36af9890e 100644
--- a/src/net/tmwa/adminhandler.h
+++ b/src/net/tmwa/adminhandler.h
@@ -65,6 +65,8 @@ class AdminHandler final : public MessageHandler, public Ea::AdminHandler
const int limit) const override final;
void muteName(const std::string &name) const override final;
+
+ void requestLogin(const Being *const being) const override final;
};
} // namespace TmwAthena