summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-10 18:33:32 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-10 18:33:32 +0300
commit041d2bcfc1d66090f2f5c21db03eaafca35add46 (patch)
tree998aea9a18f55f330b1ecbd8389ae0d736aeb286 /src/net
parentab07e8d1c5525d9bcbd3669a874d061cbc0236da (diff)
downloadmv-041d2bcfc1d66090f2f5c21db03eaafca35add46.tar.gz
mv-041d2bcfc1d66090f2f5c21db03eaafca35add46.tar.bz2
mv-041d2bcfc1d66090f2f5c21db03eaafca35add46.tar.xz
mv-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.cpp5
-rw-r--r--src/net/eathena/serverfeatures.h2
-rw-r--r--src/net/serverfeatures.h2
-rw-r--r--src/net/tmwa/serverfeatures.cpp5
-rw-r--r--src/net/tmwa/serverfeatures.h2
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