From d4b88a7ebce6222c34928c49925f972515593e89 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 20 May 2014 18:04:19 +0300 Subject: Move registrationoptions into separate file. --- src/net/tmwa/loginhandler.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/net/tmwa/loginhandler.cpp') 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 -- cgit v1.2.3-70-g09d2