summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-01 15:40:45 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-01 15:40:45 +0300
commitc9a0a01ffff11b23c517cc2d0c6a08a83c7a8158 (patch)
treed5e06d87250dd4be2a70b672eaea7145396d5dc5 /src/net
parent5f4951d34c52e92ddd38606b140e8dcded25448c (diff)
downloadplus-c9a0a01ffff11b23c517cc2d0c6a08a83c7a8158.tar.gz
plus-c9a0a01ffff11b23c517cc2d0c6a08a83c7a8158.tar.bz2
plus-c9a0a01ffff11b23c517cc2d0c6a08a83c7a8158.tar.xz
plus-c9a0a01ffff11b23c517cc2d0c6a08a83c7a8158.zip
Add chat command /guildrecall. Also add it to player 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 ee9c2b76a..71517229f 100644
--- a/src/net/adminhandler.h
+++ b/src/net/adminhandler.h
@@ -176,6 +176,8 @@ class AdminHandler notfinal
virtual void partyRecall(const std::string &name) const = 0;
virtual void breakGuild(const std::string &name) const = 0;
+
+ virtual void guildRecall(const std::string &name) const = 0;
};
} // namespace Net
diff --git a/src/net/eathena/adminhandler.cpp b/src/net/eathena/adminhandler.cpp
index d02a26479..0084c6e98 100644
--- a/src/net/eathena/adminhandler.cpp
+++ b/src/net/eathena/adminhandler.cpp
@@ -362,4 +362,9 @@ void AdminHandler::breakGuild(const std::string &name) const
Gm::runCharCommand("breakguild", name);
}
+void AdminHandler::guildRecall(const std::string &name) const
+{
+ Gm::runCommand("guildrecall", name);
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/adminhandler.h b/src/net/eathena/adminhandler.h
index d5f937307..542fab695 100644
--- a/src/net/eathena/adminhandler.h
+++ b/src/net/eathena/adminhandler.h
@@ -152,6 +152,8 @@ class AdminHandler final : public Ea::AdminHandler
void breakGuild(const std::string &name) const override final;
+ void guildRecall(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 edcb5f76a..b6c4ff33e 100644
--- a/src/net/tmwa/adminhandler.cpp
+++ b/src/net/tmwa/adminhandler.cpp
@@ -283,4 +283,8 @@ void AdminHandler::breakGuild(const std::string &name A_UNUSED) const
{
}
+void AdminHandler::guildRecall(const std::string &name A_UNUSED) const
+{
+}
+
} // namespace TmwAthena
diff --git a/src/net/tmwa/adminhandler.h b/src/net/tmwa/adminhandler.h
index bff931718..21eddd437 100644
--- a/src/net/tmwa/adminhandler.h
+++ b/src/net/tmwa/adminhandler.h
@@ -165,6 +165,8 @@ class AdminHandler final : public Ea::AdminHandler
void partyRecall(const std::string &name) const override final A_CONST;
void breakGuild(const std::string &name) const override final A_CONST;
+
+ void guildRecall(const std::string &name) const override final A_CONST;
};
} // namespace TmwAthena