summaryrefslogtreecommitdiff
path: root/src/net/serverinfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/serverinfo.h')
-rw-r--r--src/net/serverinfo.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/net/serverinfo.h b/src/net/serverinfo.h
index 8b5b8f9d..b888cbbf 100644
--- a/src/net/serverinfo.h
+++ b/src/net/serverinfo.h
@@ -33,7 +33,7 @@ public:
enum Type {
UNKNOWN,
MANASERV,
- EATHENA
+ TMWATHENA
};
typedef std::pair<int, std::string> VersionString;
@@ -99,8 +99,11 @@ public:
static Type parseType(const std::string &type)
{
- if (compareStrI(type, "eathena") == 0)
- return EATHENA;
+ if (compareStrI(type, "tmwathena") == 0)
+ return TMWATHENA;
+ // Used for backward compatibility
+ else if (compareStrI(type, "eathena") == 0)
+ return TMWATHENA;
else if (compareStrI(type, "manaserv") == 0)
return MANASERV;