From 9b8b9adbe47861db55c4e9a3d5dad16e4ec8401f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 18 Sep 2014 23:00:48 +0300 Subject: Add server feature haveOnlineList. --- src/net/eathena/serverfeatures.cpp | 5 +++++ src/net/eathena/serverfeatures.h | 2 ++ src/net/serverfeatures.h | 2 ++ src/net/tmwa/serverfeatures.cpp | 5 +++++ src/net/tmwa/serverfeatures.h | 2 ++ 5 files changed, 16 insertions(+) (limited to 'src') 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; -- cgit v1.2.3-70-g09d2