Skip to content

Commit 9ba5cc3

Browse files
authored
Update sv_main.lua
- Remove the new line character to ensure an actual version check occurs. - Fix a spelling mistake.
1 parent d6f0be6 commit 9ba5cc3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sv_main.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Citizen.CreateThread(function()
1212
end
1313

1414
if not IsPrincipalAceAllowed(principal, "command.add_ace") then
15-
Log("^1WARNING: DiscordAPI is missing the 'command.add_ace' permission. The resource may not function as intended. PPlease grant this permission in the server.cfg.")
15+
Log("^1WARNING: DiscordAPI is missing the 'command.add_ace' permission. The resource may not function as intended. Please grant this permission in the server.cfg.")
1616
end
1717

1818
if not IsPrincipalAceAllowed(principal, "command.remove_principal") then
@@ -29,10 +29,10 @@ Citizen.CreateThread(function()
2929
return
3030
end
3131

32-
if version ~= tostring(text) then
32+
if version ~= tostring(text):gsub("\n", "") then
3333
Log("^1WARNING: Your version of DiscordAPI doesn't match the latest version.")
3434
Log("^1WARNING: Your version: ^7" .. version)
3535
Log("^1WARNING: Latest version: ^7" .. text)
3636
end
3737
end)
38-
end)
38+
end)

0 commit comments

Comments
 (0)