summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 caac3607a..089f58da1 100644
--- a/src/net/eathena/serverfeatures.cpp
+++ b/src/net/eathena/serverfeatures.cpp
@@ -230,4 +230,9 @@ bool ServerFeatures::haveMute() const
return true;
}
+bool ServerFeatures::haveChangePassword() const
+{
+ return serverVersion >= 6;
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/serverfeatures.h b/src/net/eathena/serverfeatures.h
index 5b7ea0b6b..ac5381299 100644
--- a/src/net/eathena/serverfeatures.h
+++ b/src/net/eathena/serverfeatures.h
@@ -111,6 +111,8 @@ class ServerFeatures final : public Net::ServerFeatures
bool haveExpPacket() const override final;
bool haveMute() const override final;
+
+ bool haveChangePassword() const override final;
};
} // namespace EAthena
diff --git a/src/net/serverfeatures.h b/src/net/serverfeatures.h
index ac67e59d9..3a5b74b1c 100644
--- a/src/net/serverfeatures.h
+++ b/src/net/serverfeatures.h
@@ -108,6 +108,8 @@ class ServerFeatures notfinal
virtual bool haveExpPacket() const = 0;
virtual bool haveMute() const = 0;
+
+ virtual bool haveChangePassword() const = 0;
};
} // namespace Net
diff --git a/src/net/tmwa/serverfeatures.cpp b/src/net/tmwa/serverfeatures.cpp
index 47afbac08..300d4398d 100644
--- a/src/net/tmwa/serverfeatures.cpp
+++ b/src/net/tmwa/serverfeatures.cpp
@@ -229,4 +229,9 @@ bool ServerFeatures::haveMute() const
return false;
}
+bool ServerFeatures::haveChangePassword() const
+{
+ return true;
+}
+
} // namespace TmwAthena
diff --git a/src/net/tmwa/serverfeatures.h b/src/net/tmwa/serverfeatures.h
index cc7709bd7..71c88cb85 100644
--- a/src/net/tmwa/serverfeatures.h
+++ b/src/net/tmwa/serverfeatures.h
@@ -111,6 +111,8 @@ class ServerFeatures final : public Net::ServerFeatures
bool haveExpPacket() const override final;
bool haveMute() const override final;
+
+ bool haveChangePassword() const override final;
};
} // namespace TmwAthena