Skip to content

Commit 0bdd598

Browse files
fix(chatevent): adding username to eid_channeljoin
1 parent 47cb2e9 commit 0bdd598

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Atlasd/Battlenet/Channel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public bool AcceptUser(GameState user, bool ignoreLimits = false, bool extendedE
124124
Users.Add(user);
125125

126126
// Tell this user they entered the channel:
127-
new ChatEvent(ChatEvent.EventIds.EID_CHANNELJOIN, ActiveFlags, 0, "", Name).WriteTo(user.Client);
127+
new ChatEvent(ChatEvent.EventIds.EID_CHANNELJOIN, ActiveFlags, 0, user.Client.GameState.OnlineName, Name).WriteTo(user.Client);
128128

129129
if (!ActiveFlags.HasFlag(Flags.Silent))
130130
{
@@ -707,7 +707,7 @@ public bool Resync()
707707
foreach (var user in Users)
708708
{
709709
// Tell users they re-entered the channel:
710-
args["chatEvent"] = new ChatEvent(ChatEvent.EventIds.EID_CHANNELJOIN, ActiveFlags, 0, "", Name);
710+
args["chatEvent"] = new ChatEvent(ChatEvent.EventIds.EID_CHANNELJOIN, ActiveFlags, 0, user.Client.GameState.OnlineName, Name);
711711
msg.Invoke(new MessageContext(user.Client, Protocols.MessageDirection.ServerToClient, args));
712712
user.Client.Send(msg.ToByteArray(user.Client.ProtocolType));
713713

0 commit comments

Comments
 (0)