mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-15 02:31:10 +03:00
feat(client): add ClientServices::IsConnected
This commit is contained in:
1 parent
03d772518b
commit
9e4cdf4204
4 files changed
+9
-4
No files matched your search
@@ -256,7 +256,7 @@ int32_t Script_GetServerName(lua_State* L) {
|
||||
}
|
||||
|
||||
int32_t Script_DisconnectFromServer(lua_State* L) {
|
||||
if (ClientServices::Connection()->IsConnected()) {
|
||||
if (ClientServices::IsConnected()) {
|
||||
CGlueMgr::m_disconnectPending = 1;
|
||||
ClientServices::Connection()->Disconnect();
|
||||
}
|
||||
@@ -267,7 +267,7 @@ int32_t Script_DisconnectFromServer(lua_State* L) {
|
||||
}
|
||||
|
||||
int32_t Script_IsConnectedToServer(lua_State* L) {
|
||||
if (ClientServices::Connection()->IsConnected()) {
|
||||
if (ClientServices::IsConnected()) {
|
||||
lua_pushnumber(L, 1.0);
|
||||
} else {
|
||||
lua_pushnil(L);
|
||||
|
||||
Reference in new issue
Block a user