0
0
Fork 0
mirror of https://github.com/Sanae6/SmoOnlineServer.git synced 2024-11-12 22:55:06 +00:00
SmoOnlineServer/Server
Robin C. Ladiges 53442b598e only start listening for clients once everything is initialized
Otherwise clients might connect to the server before everything is ready for them.
E.g. when restarting the server, the clients will immediately try to reconnect.

Clients might connect before the `PacketHandler` is initialized, which results in some packets not being processed by the server correctly.

Same goes for the commands: Discord might send in commands before all commands were added to the `CommandHandler`.

Without the `ClientJoined` action, clients might even be allowed to connect if they are on the banlist.
(Though without this initialization they or regular clients might be broken in some ways?)

(cherry picked from commit 92e540aaa6)
2022-10-10 11:08:38 -06:00
..
Client.cs Removed fire-and-forget warnings, null-forgave some metadata. 2022-07-29 12:55:01 -06:00
CommandHandler.cs Added quotable arguments, potential fix for ban * not banning anyone. 2022-07-27 12:14:56 -06:00
DiscordBot.cs better DiscordBot channel exceptions 2022-09-07 10:36:57 -06:00
FlipOptions.cs Add scenario merging and run reformatting on solution 2022-03-01 15:08:53 -06:00
Program.cs only start listening for clients once everything is initialized 2022-10-10 11:08:38 -06:00
Server.cs remove unused label 2022-09-07 10:35:26 -06:00
Server.csproj Add a simple discord bot to manage the server 2022-06-12 18:48:24 -06:00
Settings.cs Differentiated command channel and log channel 2022-08-22 18:58:42 -06:00
Time.cs Add tag commands and improve command handling 2022-03-14 23:59:23 -06:00