diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-18 23:00:48 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-18 23:00:48 +0300 |
commit | 9b8b9adbe47861db55c4e9a3d5dad16e4ec8401f (patch) | |
tree | a3f6e5c972a8ce8b84d40e400f3dfe842544f9b8 /src/net | |
parent | 5f4a39884ad8fc44c291de81138b04b25d5be900 (diff) | |
download | plus-9b8b9adbe47861db55c4e9a3d5dad16e4ec8401f.tar.gz plus-9b8b9adbe47861db55c4e9a3d5dad16e4ec8401f.tar.bz2 plus-9b8b9adbe47861db55c4e9a3d5dad16e4ec8401f.tar.xz plus-9b8b9adbe47861db55c4e9a3d5dad16e4ec8401f.zip |
Add server feature haveOnlineList.
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 afed9a43b..8a1308506 100644 --- a/src/net/eathena/serverfeatures.cpp +++ b/src/net/eathena/serverfeatures.cpp @@ -37,6 +37,11 @@ bool ServerFeatures::haveServerOnlineList() const return false; } +bool ServerFeatures::haveOnlineList() const +{ + return false; +} + bool ServerFeatures::havePartyNickInvite() const { return true; diff --git a/src/net/eathena/serverfeatures.h b/src/net/eathena/serverfeatures.h index 1eef4f5e2..842e1ce16 100644 --- a/src/net/eathena/serverfeatures.h +++ b/src/net/eathena/serverfeatures.h @@ -36,6 +36,8 @@ class ServerFeatures final : public Net::ServerFeatures bool haveServerOnlineList() const override final; + bool haveOnlineList() const override final; + bool havePartyNickInvite() const override final; bool haveChangePartyLeader() const override final; diff --git a/src/net/serverfeatures.h b/src/net/serverfeatures.h index 66cd406ab..9a39a2d52 100644 --- a/src/net/serverfeatures.h +++ b/src/net/serverfeatures.h @@ -33,6 +33,8 @@ class ServerFeatures notfinal virtual bool haveServerOnlineList() const = 0; + virtual bool haveOnlineList() const = 0; + virtual bool havePartyNickInvite() const = 0; virtual bool haveChangePartyLeader() const = 0; diff --git a/src/net/tmwa/serverfeatures.cpp b/src/net/tmwa/serverfeatures.cpp index 4e33ccce1..5177ac7cb 100644 --- a/src/net/tmwa/serverfeatures.cpp +++ b/src/net/tmwa/serverfeatures.cpp @@ -39,6 +39,11 @@ bool ServerFeatures::haveServerOnlineList() const return serverVersion >= 3; } +bool ServerFeatures::haveOnlineList() const +{ + return true; +} + bool ServerFeatures::havePartyNickInvite() const { return false; diff --git a/src/net/tmwa/serverfeatures.h b/src/net/tmwa/serverfeatures.h index 0d0ce5ee4..7e71932eb 100644 --- a/src/net/tmwa/serverfeatures.h +++ b/src/net/tmwa/serverfeatures.h @@ -36,6 +36,8 @@ class ServerFeatures final : public Net::ServerFeatures bool haveServerOnlineList() const override final; + bool haveOnlineList() const override final; + bool havePartyNickInvite() const override final; bool haveChangePartyLeader() const override final; |