[wesnoth-commits] [wesnoth/wesnoth] a880ae: Wesnothd: added a login response, including admin ...
Charles Dang
noreply at github.com
Wed Dec 9 14:28:36 UTC 2020
Branch: refs/heads/login_response
Home: https://github.com/wesnoth/wesnoth
Commit: a880aecd4c25fdd686ddd714e27232fb8c99983f
https://github.com/wesnoth/wesnoth/commit/a880aecd4c25fdd686ddd714e27232fb8c99983f
Author: Charles Dang <exodia339 at gmail.com>
Date: 2020-12-10 (Thu, 10 Dec 2020)
Changed paths:
M src/game_initialization/multiplayer.cpp
M src/preferences/game.cpp
M src/preferences/game.hpp
M src/server/wesnothd/server.cpp
Log Message:
-----------
Wesnothd: added a login response, including admin status
This is instead of having the server send a message after the login is complete and before the initial gamelist.
Since we wait at the loading screen for the latter (e41534d114437b26c735915f530df2cbc28e6c15), this has needed
to be handled here (2b4ae206ab796934899a628be6d3808a4ccd6c60), but it doesn't make much sense to be handled this
way. Many years ago this message was meant to show up in chat, but after the former change that no longer happened,
(IIRC) and after the latter change it most certainly won't.
This adds a proper [login_response] response from the server on a successful login which includes an `is_admin`
key containing the user's admin status.
More information about the Commits
mailing list