summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-29 01:55:41 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-29 01:55:41 +0300
commit9956ff63ccfaee02ed68d0125007b90849cc1ee5 (patch)
tree0cf8ee36f9cd39471590234de1adde3d0edeaf27 /src/net
parent60100c4b30f779fe8f63758f9974891e98816340 (diff)
downloadplus-9956ff63ccfaee02ed68d0125007b90849cc1ee5.tar.gz
plus-9956ff63ccfaee02ed68d0125007b90849cc1ee5.tar.bz2
plus-9956ff63ccfaee02ed68d0125007b90849cc1ee5.tar.xz
plus-9956ff63ccfaee02ed68d0125007b90849cc1ee5.zip
Add chat command /partyrecall. Also add it to npc context menu.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/adminhandler.h2
-rw-r--r--src/net/eathena/adminhandler.cpp5
-rw-r--r--src/net/eathena/adminhandler.h2
-rw-r--r--src/net/tmwa/adminhandler.cpp4
-rw-r--r--src/net/tmwa/adminhandler.h2
5 files changed, 15 insertions, 0 deletions
diff --git a/src/net/adminhandler.h b/src/net/adminhandler.h
index da919e25c..878e24782 100644
--- a/src/net/adminhandler.h
+++ b/src/net/adminhandler.h
@@ -172,6 +172,8 @@ class AdminHandler notfinal
virtual void showNpc(const std::string &name) const = 0;
virtual void changePartyLeader(const std::string &name) const = 0;
+
+ virtual void partyRecall(const std::string &name) const = 0;
};
} // namespace Net
diff --git a/src/net/eathena/adminhandler.cpp b/src/net/eathena/adminhandler.cpp
index 07b99347e..29e346af8 100644
--- a/src/net/eathena/adminhandler.cpp
+++ b/src/net/eathena/adminhandler.cpp
@@ -352,4 +352,9 @@ void AdminHandler::changePartyLeader(const std::string &name) const
Gm::runCommand("changeleader", name);
}
+void AdminHandler::partyRecall(const std::string &name) const
+{
+ Gm::runCommand("partyrecall", name);
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/adminhandler.h b/src/net/eathena/adminhandler.h
index 756f60187..c34e6d049 100644
--- a/src/net/eathena/adminhandler.h
+++ b/src/net/eathena/adminhandler.h
@@ -148,6 +148,8 @@ class AdminHandler final : public Ea::AdminHandler
void changePartyLeader(const std::string &name) const override final;
+ void partyRecall(const std::string &name) const override final;
+
protected:
static std::string mStatsName;
};
diff --git a/src/net/tmwa/adminhandler.cpp b/src/net/tmwa/adminhandler.cpp
index 4ae9e5346..88c9683fe 100644
--- a/src/net/tmwa/adminhandler.cpp
+++ b/src/net/tmwa/adminhandler.cpp
@@ -275,4 +275,8 @@ void AdminHandler::changePartyLeader(const std::string &name A_UNUSED) const
{
}
+void AdminHandler::partyRecall(const std::string &name A_UNUSED) const
+{
+}
+
} // namespace TmwAthena
diff --git a/src/net/tmwa/adminhandler.h b/src/net/tmwa/adminhandler.h
index 069913ab8..5d43c14ff 100644
--- a/src/net/tmwa/adminhandler.h
+++ b/src/net/tmwa/adminhandler.h
@@ -161,6 +161,8 @@ class AdminHandler final : public Ea::AdminHandler
void changePartyLeader(const std::string &name) const override final
A_CONST;
+
+ void partyRecall(const std::string &name) const override final A_CONST;
};
} // namespace TmwAthena