mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 16:22:45 +03:00
feat(ui): implement Script_DisconnectFromServer
This commit is contained in:
parent
3e0a586238
commit
5aa6f3c887
@ -256,7 +256,14 @@ int32_t Script_GetServerName(lua_State* L) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int32_t Script_DisconnectFromServer(lua_State* L) {
|
int32_t Script_DisconnectFromServer(lua_State* L) {
|
||||||
WHOA_UNIMPLEMENTED(0);
|
if (ClientServices::Connection()->IsConnected()) {
|
||||||
|
CGlueMgr::m_disconnectPending = 1;
|
||||||
|
ClientServices::Connection()->Disconnect();
|
||||||
|
}
|
||||||
|
|
||||||
|
ClientServices::LoginConnection()->Logoff();
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int32_t Script_IsConnectedToServer(lua_State* L) {
|
int32_t Script_IsConnectedToServer(lua_State* L) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user