aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-07-23 10:41:22 -0500
committerJP Dillingham <jpdillingham@gmail.com>2021-07-23 10:41:22 -0500
commite0fa9554fdcd29e3f400d56234228b6728a933f1 (patch)
tree6ea40b3107a6682ef7084dded978340d4f377f34 /src
parent0684e1c22edea317374289b1ca63eb0c34f0b3c9 (diff)
downloadslskd-e0fa9554fdcd29e3f400d56234228b6728a933f1.tar.gz
the Client instance is the source of truth for current username
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Application/Service.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/slskd/Application/Service.cs b/src/slskd/Application/Service.cs
index 7c3b9756..61b5da12 100644
--- a/src/slskd/Application/Service.cs
+++ b/src/slskd/Application/Service.cs
@@ -356,7 +356,7 @@ namespace slskd
private void Client_LoggedIn(object sender, EventArgs e)
{
- Logger.Information("Logged in to the Soulseek server as {Username}", Options.Soulseek.Username);
+ Logger.Information("Logged in to the Soulseek server as {Username}", Client.Username);
}
private async void Client_Disconnected(object sender, SoulseekClientDisconnectedEventArgs args)
@@ -380,7 +380,7 @@ namespace slskd
}
else if (args.Exception is KickedFromServerException)
{
- Logger.Error("Disconnected from the Soulseek server: another client logged in using the username {Username}", Options.Soulseek.Username);
+ Logger.Error("Disconnected from the Soulseek server: another client logged in using the username {Username}", Client.Username);
}
else
{
@@ -446,7 +446,7 @@ namespace slskd
private void Client_RoomJoined(object sender, RoomJoinedEventArgs args)
{
// this will fire when we join a room; track that through the join operation.
- if (args.Username != Options.Soulseek.Username)
+ if (args.Username != Client.Username)
{
RoomTracker.TryAddUser(args.RoomName, args.UserData);
}