diff options
author | Rogier Polak <rogier.l.a.polak@gmail.com> | 2007-02-23 19:18:28 +0000 |
---|---|---|
committer | Rogier Polak <rogier.l.a.polak@gmail.com> | 2007-02-23 19:18:28 +0000 |
commit | 775404c84c3250225d43f10c4a5363e997618cb2 (patch) | |
tree | 38393287d1554d8e19471f24bc65525c79efeccb /src/net/accountserver/accountserver.cpp | |
parent | fee8461a594770f8ef2bd826868a4ae81270a666 (diff) | |
download | mana-client-775404c84c3250225d43f10c4a5363e997618cb2.tar.gz mana-client-775404c84c3250225d43f10c4a5363e997618cb2.tar.bz2 mana-client-775404c84c3250225d43f10c4a5363e997618cb2.tar.xz mana-client-775404c84c3250225d43f10c4a5363e997618cb2.zip |
Added unregistering, logout_then_exit, switch_character and switch_accountserver.
Diffstat (limited to 'src/net/accountserver/accountserver.cpp')
-rw-r--r-- | src/net/accountserver/accountserver.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/net/accountserver/accountserver.cpp b/src/net/accountserver/accountserver.cpp index 8fde6d5e..92d803e6 100644 --- a/src/net/accountserver/accountserver.cpp +++ b/src/net/accountserver/accountserver.cpp @@ -63,6 +63,14 @@ void Net::AccountServer::logout() { MessageOut msg(PAMSG_LOGOUT); Net::AccountServer::connection->send(msg); +} - Net::AccountServer::connection = 0; +void Net::AccountServer::reconnectAccount(Net::Connection *connection, + const std::string &passToken) +{ + Net::AccountServer::connection = connection; + + MessageOut msg(PAMSG_RECONNECT); + msg.writeString(passToken, 32); + Net::AccountServer::connection->send(msg); } |