From a7f634fe64f9ec9064e59eee4338d58100f605fb Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 3 Dec 2014 13:03:59 +0300 Subject: Add server feature haveJoinChannel. --- 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 d0557b03f..73aac6ea7 100644 --- a/src/net/eathena/serverfeatures.cpp +++ b/src/net/eathena/serverfeatures.cpp @@ -170,4 +170,9 @@ bool ServerFeatures::haveNpcGender() const return serverVersion >= 3; } +bool ServerFeatures::haveJoinChannel() const +{ + return serverVersion >= 3; +} + } // namespace EAthena diff --git a/src/net/eathena/serverfeatures.h b/src/net/eathena/serverfeatures.h index 735e19913..adf8be2a1 100644 --- a/src/net/eathena/serverfeatures.h +++ b/src/net/eathena/serverfeatures.h @@ -87,6 +87,8 @@ class ServerFeatures final : public Net::ServerFeatures bool haveMapServerVersion() const override final; bool haveNpcGender() const override final; + + bool haveJoinChannel() const override final; }; } // namespace EAthena diff --git a/src/net/serverfeatures.h b/src/net/serverfeatures.h index 599d7e54d..ab9a79cd9 100644 --- a/src/net/serverfeatures.h +++ b/src/net/serverfeatures.h @@ -84,6 +84,8 @@ class ServerFeatures notfinal virtual bool haveMapServerVersion() const = 0; virtual bool haveNpcGender() const = 0; + + virtual bool haveJoinChannel() const = 0; }; } // namespace Net diff --git a/src/net/tmwa/serverfeatures.cpp b/src/net/tmwa/serverfeatures.cpp index 7068638fa..0f107e314 100644 --- a/src/net/tmwa/serverfeatures.cpp +++ b/src/net/tmwa/serverfeatures.cpp @@ -169,4 +169,9 @@ bool ServerFeatures::haveNpcGender() const return serverVersion > 0; } +bool ServerFeatures::haveJoinChannel() const +{ + return false; +} + } // namespace TmwAthena diff --git a/src/net/tmwa/serverfeatures.h b/src/net/tmwa/serverfeatures.h index 7a449b268..c00bd478f 100644 --- a/src/net/tmwa/serverfeatures.h +++ b/src/net/tmwa/serverfeatures.h @@ -87,6 +87,8 @@ class ServerFeatures final : public Net::ServerFeatures bool haveMapServerVersion() const override final; bool haveNpcGender() const override final; + + bool haveJoinChannel() const override final; }; } // namespace TmwAthena -- cgit v1.2.3-70-g09d2