Skip to content

Commit

Permalink
Revert string concatenation in favour of string.format
Browse files Browse the repository at this point in the history
  • Loading branch information
Camble committed Aug 15, 2024
1 parent d0947bf commit 058041f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Scripts/DCS-SRS-AutoConnectGameGUI.lua
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ end
function SRSAuto.sendAutoConnectMessage(id)
SRSAuto.log(string.format("Sending auto connect message to player %d on connect ", id))
if SRSAuto.SERVER_SRS_HOST_AUTO then
net.send_chat_to(SRSAuto.MESSAGE_PREFIX_PORT .. SRSAuto.SERVER_SRS_PORT, id)
net.send_chat_to(string.format(SRSAuto.MESSAGE_PREFIX_PORT .. "%s", SRSAuto.SERVER_SRS_PORT), id)
else
net.send_chat_to(SRSAuto.MESSAGE_PREFIX .. SRSAuto.SERVER_SRS_HOST .. ":" .. SRSAuto.SERVER_SRS_PORT, id)
net.send_chat_to(string.format(SRSAuto.MESSAGE_PREFIX .. "%s", SRSAuto.SERVER_SRS_HOST..":"..SRSAuto.SERVER_SRS_PORT), id)
end
end

Expand Down

0 comments on commit 058041f

Please sign in to comment.