summaryrefslogtreecommitdiff
path: root/src/net/manaserv
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-04-09 16:51:26 -0600
committerJared Adams <jaxad0127@gmail.com>2010-04-09 20:21:21 -0600
commit9d94337026bbe6236bc4a39143c839a3bb386326 (patch)
treedac05e0eb05abd5476f735f55cb94921b96280da /src/net/manaserv
parentc8b0e10348ea28da418985c997b324cfce865064 (diff)
downloadmana-9d94337026bbe6236bc4a39143c839a3bb386326.tar.gz
mana-9d94337026bbe6236bc4a39143c839a3bb386326.tar.bz2
mana-9d94337026bbe6236bc4a39143c839a3bb386326.tar.xz
mana-9d94337026bbe6236bc4a39143c839a3bb386326.zip
Add support for registration disabled for eAthena
Reviewed-by: Chuck Miller`
Diffstat (limited to 'src/net/manaserv')
-rw-r--r--src/net/manaserv/loginhandler.cpp5
-rw-r--r--src/net/manaserv/loginhandler.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/src/net/manaserv/loginhandler.cpp b/src/net/manaserv/loginhandler.cpp
index b3c70226..e51aef6f 100644
--- a/src/net/manaserv/loginhandler.cpp
+++ b/src/net/manaserv/loginhandler.cpp
@@ -354,6 +354,11 @@ void LoginHandler::disconnect()
}
}
+bool LoginHandler::isRegistrationEnabled()
+{
+ return true;
+}
+
void LoginHandler::getRegistrationDetails()
{
MessageOut msg(PAMSG_REQUEST_REGISTER_INFO);
diff --git a/src/net/manaserv/loginhandler.h b/src/net/manaserv/loginhandler.h
index 6416ff29..d2ffbc3d 100644
--- a/src/net/manaserv/loginhandler.h
+++ b/src/net/manaserv/loginhandler.h
@@ -47,6 +47,8 @@ class LoginHandler : public MessageHandler, public Net::LoginHandler
int supportedOptionalActions() const
{ return Unregister | ChangeEmail | SetEmailOnRegister; }
+ bool isRegistrationEnabled();
+
void getRegistrationDetails();
unsigned int getMinUserNameLength() const;