log joins

This commit is contained in:
Elijah R 2024-01-03 19:51:15 -05:00
parent d62c8ca564
commit 58d2c21ca3

View file

@ -129,7 +129,7 @@ public class VM
};
user.Disconnected += async (_, _) =>
{
Utilities.Log(LogLevel.INFO, $"User {user.Username!} disconnected");
Utilities.Log(LogLevel.INFO, $"[{Config.ID}] User {user.Username!} disconnected");
this.Users.Remove(user);
this.TurnQueue.RemoveUser(user);
user.IPData.Reset();
@ -149,6 +149,7 @@ public class VM
{
await u.SendNewUser(user.Username!, user.Rank);
}
Utilities.Log(LogLevel.INFO, $"[{Config.Name}] {user.IP.ToString()} connected as {user.Username}");
}
public async Task SendChat(User user, string message, bool xss = false, bool excludeAdmins = false)