diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-10 18:33:32 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-10 18:33:32 +0300 |
commit | 041d2bcfc1d66090f2f5c21db03eaafca35add46 (patch) | |
tree | 998aea9a18f55f330b1ecbd8389ae0d736aeb286 /src/net | |
parent | ab07e8d1c5525d9bcbd3669a874d061cbc0236da (diff) | |
download | manaverse-041d2bcfc1d66090f2f5c21db03eaafca35add46.tar.gz manaverse-041d2bcfc1d66090f2f5c21db03eaafca35add46.tar.bz2 manaverse-041d2bcfc1d66090f2f5c21db03eaafca35add46.tar.xz manaverse-041d2bcfc1d66090f2f5c21db03eaafca35add46.zip |
In server features add havePartyNickInvite.
Allow invite in party by nick if server support havePartyNickInvite.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/eathena/serverfeatures.cpp | 5 | ||||
-rw-r--r-- | src/net/eathena/serverfeatures.h | 2 | ||||
-rw-r--r-- | src/net/serverfeatures.h | 2 | ||||
-rw-r--r-- | src/net/tmwa/serverfeatures.cpp | 5 | ||||
-rw-r--r-- | src/net/tmwa/serverfeatures.h | 2 |
5 files changed, 16 insertions, 0 deletions
diff --git a/src/net/eathena/serverfeatures.cpp b/src/net/eathena/serverfeatures.cpp index cb0b730e4..5d5a6d588 100644 --- a/src/net/eathena/serverfeatures.cpp +++ b/src/net/eathena/serverfeatures.cpp @@ -37,4 +37,9 @@ bool ServerFeatures::haveOnlineList() const return false; } +bool ServerFeatures::havePartyNickInvite() const +{ + return true; +} + } // EAthena diff --git a/src/net/eathena/serverfeatures.h b/src/net/eathena/serverfeatures.h index c15bbb705..9bc856f1e 100644 --- a/src/net/eathena/serverfeatures.h +++ b/src/net/eathena/serverfeatures.h @@ -35,6 +35,8 @@ class ServerFeatures final : public Net::ServerFeatures A_DELETE_COPY(ServerFeatures) bool haveOnlineList() const override final; + + bool havePartyNickInvite() const override final; }; } // namespace Net diff --git a/src/net/serverfeatures.h b/src/net/serverfeatures.h index a2170c44b..3f3268c3a 100644 --- a/src/net/serverfeatures.h +++ b/src/net/serverfeatures.h @@ -32,6 +32,8 @@ class ServerFeatures notfinal { } virtual bool haveOnlineList() const = 0; + + virtual bool havePartyNickInvite() const = 0; }; } // namespace Net diff --git a/src/net/tmwa/serverfeatures.cpp b/src/net/tmwa/serverfeatures.cpp index 4942912a5..c8c497613 100644 --- a/src/net/tmwa/serverfeatures.cpp +++ b/src/net/tmwa/serverfeatures.cpp @@ -38,4 +38,9 @@ bool ServerFeatures::haveOnlineList() const return serverVersion >= 3; } +bool ServerFeatures::havePartyNickInvite() const +{ + return false; +} + } // TmwAthena diff --git a/src/net/tmwa/serverfeatures.h b/src/net/tmwa/serverfeatures.h index 6b85b887c..2c846a6ce 100644 --- a/src/net/tmwa/serverfeatures.h +++ b/src/net/tmwa/serverfeatures.h @@ -35,6 +35,8 @@ class ServerFeatures final : public Net::ServerFeatures A_DELETE_COPY(ServerFeatures) bool haveOnlineList() const override final; + + bool havePartyNickInvite() const override final; }; } // namespace Net |