summaryrefslogtreecommitdiff
path: root/src/net/tmwa
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-16 16:58:57 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-16 16:58:57 +0300
commit21de2b88329859b8b49aa9d1bd818e8da65e3b11 (patch)
treedfcafb474be95087826ffe91aa7c63d4de35065a /src/net/tmwa
parent2b3b773d1b902eb0797e2d9fc034d63559af87a3 (diff)
downloadmanaverse-21de2b88329859b8b49aa9d1bd818e8da65e3b11.tar.gz
manaverse-21de2b88329859b8b49aa9d1bd818e8da65e3b11.tar.bz2
manaverse-21de2b88329859b8b49aa9d1bd818e8da65e3b11.tar.xz
manaverse-21de2b88329859b8b49aa9d1bd818e8da65e3b11.zip
Add server feature haveTeamId.
Diffstat (limited to 'src/net/tmwa')
-rw-r--r--src/net/tmwa/serverfeatures.cpp5
-rw-r--r--src/net/tmwa/serverfeatures.h2
2 files changed, 7 insertions, 0 deletions
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