From a3310b047fb85052429a979eb0ebd02d47c43964 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 4 Jan 2015 18:43:16 +0300 Subject: Add server feature haveEmailOnDelete. --- 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/net') diff --git a/src/net/eathena/serverfeatures.cpp b/src/net/eathena/serverfeatures.cpp index fca96cc4f..1112f5c0c 100644 --- a/src/net/eathena/serverfeatures.cpp +++ b/src/net/eathena/serverfeatures.cpp @@ -135,6 +135,11 @@ bool ServerFeatures::haveEmailOnRegister() const return serverVersion >= 2; } +bool ServerFeatures::haveEmailOnDelete() const +{ + return serverVersion >= 2; +} + bool ServerFeatures::haveEightDirections() const { return true; diff --git a/src/net/eathena/serverfeatures.h b/src/net/eathena/serverfeatures.h index 9965d2271..05e378b83 100644 --- a/src/net/eathena/serverfeatures.h +++ b/src/net/eathena/serverfeatures.h @@ -76,6 +76,8 @@ class ServerFeatures final : public Net::ServerFeatures bool haveEmailOnRegister() const override final; + bool haveEmailOnDelete() const override final; + bool haveEightDirections() const override final; bool haveCharRename() const override final; diff --git a/src/net/serverfeatures.h b/src/net/serverfeatures.h index 1465daa51..ff79fedce 100644 --- a/src/net/serverfeatures.h +++ b/src/net/serverfeatures.h @@ -73,6 +73,8 @@ class ServerFeatures notfinal virtual bool haveEmailOnRegister() const = 0; + virtual bool haveEmailOnDelete() const = 0; + virtual bool haveEightDirections() const = 0; virtual bool haveCharRename() const = 0; diff --git a/src/net/tmwa/serverfeatures.cpp b/src/net/tmwa/serverfeatures.cpp index 1b6fd7303..6f4ff34ea 100644 --- a/src/net/tmwa/serverfeatures.cpp +++ b/src/net/tmwa/serverfeatures.cpp @@ -134,6 +134,11 @@ bool ServerFeatures::haveEmailOnRegister() const return serverVersion >= 7; } +bool ServerFeatures::haveEmailOnDelete() const +{ + return false; +} + bool ServerFeatures::haveEightDirections() const { return false; diff --git a/src/net/tmwa/serverfeatures.h b/src/net/tmwa/serverfeatures.h index 83a7270f3..5c0d1240c 100644 --- a/src/net/tmwa/serverfeatures.h +++ b/src/net/tmwa/serverfeatures.h @@ -76,6 +76,8 @@ class ServerFeatures final : public Net::ServerFeatures bool haveEmailOnRegister() const override final; + bool haveEmailOnDelete() const override final; + bool haveEightDirections() const override final; bool haveCharRename() const override final; -- cgit v1.2.3-70-g09d2