mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Add reason to RCON client disconnect
This commit is contained in:
parent
cc38fabaa7
commit
8eea3546a6
@ -922,7 +922,7 @@ void RCON_CmdQuery_f(const CCommand& args)
|
||||
}
|
||||
else if (strcmp(args.Arg(1), "disconnect") == 0) // Disconnect from RCON server.
|
||||
{
|
||||
RCONClient()->Disconnect();
|
||||
RCONClient()->Disconnect("issued by user");
|
||||
return;
|
||||
}
|
||||
|
||||
@ -951,7 +951,7 @@ RCON_Disconnect_f
|
||||
void RCON_Disconnect_f(const CCommand& args)
|
||||
{
|
||||
const bool bIsConnected = RCONClient()->IsConnected();
|
||||
RCONClient()->Disconnect();
|
||||
RCONClient()->Disconnect("issued by user");
|
||||
|
||||
if (bIsConnected) // Log if client was indeed connected.
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user