diff --git a/client.cs b/client.cs index 698b2c1..b6003dd 100644 --- a/client.cs +++ b/client.cs @@ -204,13 +204,18 @@ function RPGClient_ZoomOut(%val) RPGClient_ApplyCamera(); } +function RPGClient_CanSendCmd() +{ + return isObject(ServerConnection) || isObject(localClientConnection); +} + function RPGClient_SendHello() { if ($RPGClient::Server) { return; } - if (!isObject(ServerConnection)) + if (!RPGClient_CanSendCmd()) { return; } @@ -221,6 +226,8 @@ function RPGClient_SendHello() } $RPGClient::HelloLast = %now; commandToServer('RPG_Hello', $RPGClient::Version); + commandToServer('RPGHello', $RPGClient::Version); + commandToServer('message', "/rpg clienthello " @ $RPGClient::Version); } function clientCmdRPG_Probe()