summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 089f58da1..8fab8eba7 100644
--- a/src/net/eathena/serverfeatures.cpp
+++ b/src/net/eathena/serverfeatures.cpp
@@ -235,4 +235,9 @@ bool ServerFeatures::haveChangePassword() const
return serverVersion >= 6;
}
+bool ServerFeatures::haveTeamId() const
+{
+ return false;
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/serverfeatures.h b/src/net/eathena/serverfeatures.h
index ac5381299..120c973c2 100644
--- a/src/net/eathena/serverfeatures.h
+++ b/src/net/eathena/serverfeatures.h
@@ -113,6 +113,8 @@ class ServerFeatures final : public Net::ServerFeatures
bool haveMute() const override final;
bool haveChangePassword() const override final;
+
+ bool haveTeamId() const override final;
};
} // namespace EAthena
diff --git a/src/net/serverfeatures.h b/src/net/serverfeatures.h
index 3a5b74b1c..881503005 100644
--- a/src/net/serverfeatures.h
+++ b/src/net/serverfeatures.h
@@ -110,6 +110,8 @@ class ServerFeatures notfinal
virtual bool haveMute() const = 0;
virtual bool haveChangePassword() const = 0;
+
+ virtual bool haveTeamId() const = 0;
};
} // namespace Net
diff --git a/src/net/tmwa/serverfeatures.cpp b/src/net/tmwa/serverfeatures.cpp
index e19f58d86..982240966 100644
--- a/src/net/tmwa/serverfeatures.cpp
+++ b/src/net/tmwa/serverfeatures.cpp
@@ -234,4 +234,9 @@ bool ServerFeatures::haveChangePassword() const
return true;
}
+bool ServerFeatures::haveTeamId() const
+{
+ return tmwServerVersion > 0;
+}
+
} // namespace TmwAthena
diff --git a/src/net/tmwa/serverfeatures.h b/src/net/tmwa/serverfeatures.h
index 71c88cb85..a1c51f7b8 100644
--- a/src/net/tmwa/serverfeatures.h
+++ b/src/net/tmwa/serverfeatures.h
@@ -113,6 +113,8 @@ class ServerFeatures final : public Net::ServerFeatures
bool haveMute() const override final;
bool haveChangePassword() const override final;
+
+ bool haveTeamId() const override final;
};
} // namespace TmwAthena