summaryrefslogtreecommitdiff
path: root/src/net/serverinfo.h
diff options
context:
space:
mode:
authorBertram <yohanndotferreiraatorange.fr>2010-04-16 13:58:56 +0200
committerBertram <yohanndotferreiraatorange.fr>2010-04-17 12:03:44 +0200
commit3ae525b05858af105cc7e3eb6ac7316fc2f5bbd5 (patch)
tree5737c40d37a7b87897b9dc9b422198b28a18b13a /src/net/serverinfo.h
parent924760c45e0f1aa1105e192bd83d6a4ce2c80f81 (diff)
downloadmana-3ae525b05858af105cc7e3eb6ac7316fc2f5bbd5.tar.gz
mana-3ae525b05858af105cc7e3eb6ac7316fc2f5bbd5.tar.bz2
mana-3ae525b05858af105cc7e3eb6ac7316fc2f5bbd5.tar.xz
mana-3ae525b05858af105cc7e3eb6ac7316fc2f5bbd5.zip
Changed eAthena protocol name to TmwAthena and changed the config files accordingly.
This makes room for the actual eAthena protocol future inclusion.
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;