Skip to content

Commit

Permalink
Improved language around successful connections.
Browse files Browse the repository at this point in the history
  • Loading branch information
manix84 committed Jul 6, 2020
1 parent 851aa6b commit 34a2943
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lua/autorun/shared.lua
Expand Up @@ -166,7 +166,7 @@ hook.Add("PlayerSay", "discord_PlayerSay", function(target_ply, msg)
playerMessage('MULTIPLE_NAMES_FOUND', target_ply, tag)
end
if (res.tag and res.id) then
playerMessage('CONNECTION_SUCCESSFUL', target_ply, res.tag, target_ply:SteamID())
playerMessage('CONNECTION_SUCCESSFUL', target_ply, target_ply:Nick(), target_ply:SteamID(), res.tag)
steamIDToDiscordIDConnectionTable[target_ply:SteamID()] = res.id
writeConnectionIDs(steamIDToDiscordIDConnectionTable)
end
Expand Down
4 changes: 2 additions & 2 deletions lua/locale/english.lua
Expand Up @@ -5,9 +5,9 @@ local english = {
ERROR_MESSAGE = "Error: %s",
JOIN_DISCORD_PROMPT = "Join the discord server - %s",
CONNECTION_INSTRUCTIONS = "Then link up by saying '!discord DISCORD_NAME' in the chat. E.g. '!discord Manix84'",
NAME_NOT_FOUND = "No server member with a name like '%s' found.",
NAME_NOT_FOUND = "There is no one on the Discord server with a name like '%s'.",
MULTIPLE_NAMES_FOUND = "Found more than one user with a name like '%s'. Try your full tag, EG: Manix84#1234",
CONNECTION_SUCCESSFUL = "Discord tag '%s' successfully boundet to SteamID '%s'",
CONNECTION_SUCCESSFUL = "'%s' (%s) successfully bound to '%s'",
WELCOME_CONNECTED = "You are connected with discord.",
AUTOMATIC_MATCH = "Attempting to match your name, %s",
}
Expand Down

0 comments on commit 34a2943

Please sign in to comment.