From f4d801ce1212433cd75c17c4add578b9527b7e84 Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Wed, 4 Nov 2020 10:19:40 -0300 Subject: [PATCH] Use the sourceName from the comm callback instead of the player name from the com Data --- core/network.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/network.lua b/core/network.lua index 4f7bfb70..b2c03fa5 100644 --- a/core/network.lua +++ b/core/network.lua @@ -380,7 +380,8 @@ print("Details Coach Received Comm", player, realm, core_version, msgType, data) end - local sourcePlayer = Ambiguate(player .. "-" .. realm, "none") + local sourcePlayer = Ambiguate(player, "none") + local playerName = UnitName("player") if (playerName == sourcePlayer) then if (_detalhes.debug) then @@ -572,9 +573,10 @@ ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- --> register comm - function _detalhes:CommReceived (_, data, _, source) + function _detalhes:CommReceived (commPrefix, data, channel, source) local prefix, player, realm, dversion, arg6, arg7, arg8, arg9 = _select (2, _detalhes:Deserialize (data)) + player = source if (_detalhes.debug) then _detalhes:Msg ("(debug) network received:", prefix, "length:", string.len (data))