summaryrefslogtreecommitdiff
path: root/src/net/tmwa
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-20 18:04:19 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-20 18:04:19 +0300
commitd4b88a7ebce6222c34928c49925f972515593e89 (patch)
treeab3c8136bcc06ec84194738c83bef8af6df62752 /src/net/tmwa
parent6bf4a5aa68afb7d95632880c001286f2a721e1f5 (diff)
downloadmv-d4b88a7ebce6222c34928c49925f972515593e89.tar.gz
mv-d4b88a7ebce6222c34928c49925f972515593e89.tar.bz2
mv-d4b88a7ebce6222c34928c49925f972515593e89.tar.xz
mv-d4b88a7ebce6222c34928c49925f972515593e89.zip
Move registrationoptions into separate file.
Diffstat (limited to 'src/net/tmwa')
-rw-r--r--src/net/tmwa/loginhandler.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/net/tmwa/loginhandler.cpp b/src/net/tmwa/loginhandler.cpp
index 3797a7a54..eccbf0928 100644
--- a/src/net/tmwa/loginhandler.cpp
+++ b/src/net/tmwa/loginhandler.cpp
@@ -25,6 +25,8 @@
#include "client.h"
#include "logger.h"
+#include "net/registrationoptions.h"
+
#include "net/tmwa/messageout.h"
#include "net/tmwa/network.h"
#include "net/tmwa/protocol.h"
@@ -264,8 +266,10 @@ void LoginHandler::processUpdateHost2(Net::MessageIn &msg) const
int LoginHandler::supportedOptionalActions() const
{
- return serverVersion >= 7 ? SetEmailOnRegister | SetGenderOnRegister
- : SetGenderOnRegister;
+ return serverVersion >= 7
+ ? Net::RegistrationOptions::SetEmailOnRegister
+ | Net::RegistrationOptions::SetGenderOnRegister
+ : Net::RegistrationOptions::SetGenderOnRegister;
}
} // namespace TmwAthena