[wesnoth-commits] [wesnoth/wesnoth] 68e6a2: Wesnothd: added a login response, including admin ...

Charles Dang noreply at github.com
Wed Dec 9 16:22:58 UTC 2020


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 68e6a2ad303df3b6755dc74adc924624a161eb2a
      https://github.com/wesnoth/wesnoth/commit/68e6a2ad303df3b6755dc74adc924624a161eb2a
  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
    M src/server/wesnothd/server.hpp

  Log Message:
  -----------
  Wesnothd: added a login response, including admin status (#5349)

* Wesnothd: added a login response, including admin status

This adds an `is_moderator` key to the [join_lobby] response containing the moderator 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.





More information about the Commits mailing list