summaryrefslogtreecommitdiff
path: root/src
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
parent2b3b773d1b902eb0797e2d9fc034d63559af87a3 (diff)
downloadmv-21de2b88329859b8b49aa9d1bd818e8da65e3b11.tar.gz
mv-21de2b88329859b8b49aa9d1bd818e8da65e3b11.tar.bz2
mv-21de2b88329859b8b49aa9d1bd818e8da65e3b11.tar.xz
mv-21de2b88329859b8b49aa9d1bd818e8da65e3b11.zip
Add server feature haveTeamId.
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