mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-27 16:22:32 +03:00
feat(ui): implement Script_DisconnectFromServer
This commit is contained in:
1 file changed
+8
-1
@@ -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) {
|
||||||
|
|||||||
Reference in new issue
Block a user