summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorPhilipp Sehmisch <mana@crushnet.org>2011-02-07 21:15:25 +0100
committerPhilipp Sehmisch <manasource@crushnet.org>2011-02-07 21:41:25 +0100
commitf47665a5fe01bbafd7e9243e62d2c3c7d42920e3 (patch)
tree07ec54dfee673d177c0daea75a04049e6ca07d2e /src/net
parenta6d527f92599a47fc17a228fdf6d57f68e83f97a (diff)
downloadmana-f47665a5fe01bbafd7e9243e62d2c3c7d42920e3.tar.gz
mana-f47665a5fe01bbafd7e9243e62d2c3c7d42920e3.tar.bz2
mana-f47665a5fe01bbafd7e9243e62d2c3c7d42920e3.tar.xz
mana-f47665a5fe01bbafd7e9243e62d2c3c7d42920e3.zip
Removed remaining reference to MANASERV_SUPPORT define switch
Also added an error message should a server ever need another protocol.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/net.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/net/net.cpp b/src/net/net.cpp
index 090ecd78..7dae6b35 100644
--- a/src/net/net.cpp
+++ b/src/net/net.cpp
@@ -154,17 +154,14 @@ void connectToServer(ServerInfo &server)
switch (server.type)
{
-#ifdef MANASERV_SUPPORT
case ServerInfo::MANASERV:
new ManaServ::GeneralHandler;
break;
-#endif
case ServerInfo::TMWATHENA:
new TmwAthena::GeneralHandler;
break;
-
default:
- // Shouldn't happen...
+ logger->error(_("Server protocol unsupported"));
break;
}