mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
[skipci] Websocket bot: Create new Responder object that will respond to the session's new name
Websocket bot: Create new Responder object that will respond to the session's new name
This commit is contained in:
commit
cf6db27088
1 changed files with 3 additions and 0 deletions
|
|
@ -425,6 +425,9 @@ public class WebSocketBot : ChatBot
|
||||||
_authenticatedSessions.Add(newId);
|
_authenticatedSessions.Add(newId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Update the responder to the new session id
|
||||||
|
responder = new WsCommandResponder(this, newId, cmd.Command, cmd.RequestId);
|
||||||
|
|
||||||
responder.SendSuccessResponse(
|
responder.SendSuccessResponse(
|
||||||
responder.Quote("The session ID was successfully changed to: '" + newId + "'"), true);
|
responder.Quote("The session ID was successfully changed to: '" + newId + "'"), true);
|
||||||
LogToConsole(string.Format(Translations.bot_WebSocketBot_session_id_changed, sessionId, newId));
|
LogToConsole(string.Format(Translations.bot_WebSocketBot_session_id_changed, sessionId, newId));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue