From a7d7ecdb895e602371913f6f3aae07a77cf4c3c8 Mon Sep 17 00:00:00 2001
From: Grav <75702884+Gravxd@users.noreply.github.com>
Date: Mon, 29 Jan 2024 20:16:08 +0000
Subject: [PATCH 01/11] feat: custom ban deferral cards with
images/customisation supported
---
server/admin_server.lua | 24 +++++++++++++++++++++++-
shared/util_shared.lua | 9 +++++++++
2 files changed, 32 insertions(+), 1 deletion(-)
diff --git a/server/admin_server.lua b/server/admin_server.lua
index 43bd9cb7..71c47440 100644
--- a/server/admin_server.lua
+++ b/server/admin_server.lua
@@ -946,8 +946,30 @@ Citizen.CreateThread(function()
updateBan(blacklisted.banid,newBanData) -- send it off!
end
PrintDebugMessage("Connection of "..getName(player).." Declined, Banned for "..blacklist[bi].reason..", Ban ID: "..blacklist[bi].banid.."\n", 3)
- deferrals.done(string.format( GetLocalisedText("bannedjoin"), blacklist[bi].reason, formatDateString(blacklist[bi].expire), blacklist[bi].banid))
+
+ local banMessageTitleColour = GetConvar("ea_banMessageTitleColour", "#354557")
+ local banMessageServerName = GetConvar("ea_banMessageServerName", "EasyAdmin")
+ local banMessageShowStaff = GetConvar("ea_banMessageShowStaff", "true")
+ local banMessageStaffName = blacklist[bi].banner
+ local banMessageFooter = GetConvar("ea_banMessageFooter", "You can appeal this by ban by visiting our discord.")
+ local banMessageSubHeader = GetConvar("ea_banMessageSubHeader", "You have been banned from this server.")
+
+ if banMessageShowStaff == "false" then
+ banMessageStaffName = 'Server Staff'
+ end
+
+ local banMessageReason = getStringUntilSuffix(blacklist[bi].reason, ", Banned by:")
+ -- gives us a raw ban reason with their nickname as we don't want the staff member displayed due to our new convar // "banned by:" field
+
+ deferrals.done(
+ '
' .. banMessageServerName .. '
'.. banMessageSubHeader ..'
Expires: ' ..
+ formatDateString(blacklist[bi].expire) .. '
Banned By: ' .. banMessageStaffName ..
+ '
Ban Reason: ' .. banMessageReason ..
+ '
Ban ID: ' ..
+ blacklist[bi].banid ..
+ '
' .. banMessageFooter .. '
')
return
+
end
end
end
diff --git a/shared/util_shared.lua b/shared/util_shared.lua
index 7ce0c618..4f5bfb79 100644
--- a/shared/util_shared.lua
+++ b/shared/util_shared.lua
@@ -329,6 +329,15 @@ function mergeTables(t1, t2)
return t
end
+-- used to get raw ban reason
+function getStringUntilSuffix(inputStr, suffix)
+ local endPos = string.find(inputStr, suffix)
+ if endPos then
+ return string.sub(inputStr, 1, endPos-1)
+ else
+ return inputStr
+ end
+end
-- terrible function to look for URLs in a string
function matchURL(text_with_URLs)
From da66b0d5b7e76ad1d8488fe16a1dc2670d7f479f Mon Sep 17 00:00:00 2001
From: Grav <75702884+Gravxd@users.noreply.github.com>
Date: Mon, 29 Jan 2024 21:41:26 +0000
Subject: [PATCH 02/11] tweak(server/admin_server) pull server name from:
sv_projectName
---
server/admin_server.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/admin_server.lua b/server/admin_server.lua
index 71c47440..ea6fb55c 100644
--- a/server/admin_server.lua
+++ b/server/admin_server.lua
@@ -948,7 +948,7 @@ Citizen.CreateThread(function()
PrintDebugMessage("Connection of "..getName(player).." Declined, Banned for "..blacklist[bi].reason..", Ban ID: "..blacklist[bi].banid.."\n", 3)
local banMessageTitleColour = GetConvar("ea_banMessageTitleColour", "#354557")
- local banMessageServerName = GetConvar("ea_banMessageServerName", "EasyAdmin")
+ local banMessageServerName = GetConvar("sv_projectName", "EasyAdmin")
local banMessageShowStaff = GetConvar("ea_banMessageShowStaff", "true")
local banMessageStaffName = blacklist[bi].banner
local banMessageFooter = GetConvar("ea_banMessageFooter", "You can appeal this by ban by visiting our discord.")
From bfa5c1d7bdd3ae50869c6fd9bb97655426e3869f Mon Sep 17 00:00:00 2001
From: Grav <75702884+Gravxd@users.noreply.github.com>
Date: Mon, 29 Jan 2024 22:31:15 +0000
Subject: [PATCH 03/11] tweak(server/admin_server) pull sv_projectname convar
as backup
---
server/admin_server.lua | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/server/admin_server.lua b/server/admin_server.lua
index ea6fb55c..60ce182b 100644
--- a/server/admin_server.lua
+++ b/server/admin_server.lua
@@ -948,8 +948,7 @@ Citizen.CreateThread(function()
PrintDebugMessage("Connection of "..getName(player).." Declined, Banned for "..blacklist[bi].reason..", Ban ID: "..blacklist[bi].banid.."\n", 3)
local banMessageTitleColour = GetConvar("ea_banMessageTitleColour", "#354557")
- local banMessageServerName = GetConvar("sv_projectName", "EasyAdmin")
- local banMessageShowStaff = GetConvar("ea_banMessageShowStaff", "true")
+ local banMessageServerName = GetConvar("ea_banMessageServerName", GetConvar("sv_projectName", "EasyAdmin")) local banMessageShowStaff = GetConvar("ea_banMessageShowStaff", "true")
local banMessageStaffName = blacklist[bi].banner
local banMessageFooter = GetConvar("ea_banMessageFooter", "You can appeal this by ban by visiting our discord.")
local banMessageSubHeader = GetConvar("ea_banMessageSubHeader", "You have been banned from this server.")
From 723fea91c8fef6a8bf7de38d7a401d91162fa575 Mon Sep 17 00:00:00 2001
From: Grav <75702884+Gravxd@users.noreply.github.com>
Date: Mon, 29 Jan 2024 22:32:24 +0000
Subject: [PATCH 04/11] tweak(server/admin_server) allow convar for custom
watermark
---
server/admin_server.lua | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/server/admin_server.lua b/server/admin_server.lua
index 60ce182b..f1091a09 100644
--- a/server/admin_server.lua
+++ b/server/admin_server.lua
@@ -952,7 +952,8 @@ Citizen.CreateThread(function()
local banMessageStaffName = blacklist[bi].banner
local banMessageFooter = GetConvar("ea_banMessageFooter", "You can appeal this by ban by visiting our discord.")
local banMessageSubHeader = GetConvar("ea_banMessageSubHeader", "You have been banned from this server.")
-
+ local banMessageWatermark = GetConvar("ea_banMessageWatermark", "https://i.imgur.com/vRFuxUN.png")
+
if banMessageShowStaff == "false" then
banMessageStaffName = 'Server Staff'
end
@@ -966,7 +967,7 @@ Citizen.CreateThread(function()
'
Ban Reason: ' .. banMessageReason ..
'
Ban ID: ' ..
blacklist[bi].banid ..
- '
' .. banMessageFooter .. ' ')
+ '
' .. banMessageFooter .. ' ')
return
end
From ff679a6fc0bd15926458db1e64ac1dbcde2ba924 Mon Sep 17 00:00:00 2001
From: Grav <75702884+Gravxd@users.noreply.github.com>
Date: Tue, 30 Jan 2024 00:14:28 +0000
Subject: [PATCH 05/11] tweak(language) adding "bansuffix" tag to help extract
raw bans for better usage
---
language/de.json | 1 +
language/en.json | 1 +
language/es.json | 1 +
language/fr.json | 1 +
language/it.json | 1 +
language/nl.json | 1 +
language/pl.json | 1 +
7 files changed, 7 insertions(+)
diff --git a/language/de.json b/language/de.json
index 55e78aa1..b970002c 100644
--- a/language/de.json
+++ b/language/de.json
@@ -85,6 +85,7 @@
"kicked": "Gekickt von %s, \nGrund: %s",
"banned": "Du wurdest von diesem server gebannt, \nGrund: %s, \nBann Läuft am %s ab.",
"reasonadd": " ( Spielername: %s ), \nGebannt von: %s",
+ "bansuffix": ", \nGebannt von: ",
"nongiven": "Keinen gegeben",
"announcement": "Announcement",
"announcementguide": "Send an announcement to all players",
diff --git a/language/en.json b/language/en.json
index 91035fcc..201e9721 100644
--- a/language/en.json
+++ b/language/en.json
@@ -84,6 +84,7 @@
"kicked": "Kicked by %s, Reason: %s",
"banned": "You have been banned from this Server, Reason: %s, Ban Expires: %s",
"reasonadd": " ( Nickname: %s ), Banned by: %s",
+ "bansuffix": ", Banned by: ",
"nongiven": "None Provided",
"announcement": "Announcement",
"announcementguide": "Send an announcement to all players",
diff --git a/language/es.json b/language/es.json
index 6b989164..f9594468 100644
--- a/language/es.json
+++ b/language/es.json
@@ -84,6 +84,7 @@
"kicked": "Has sido kickeado por %s, Razon: %s",
"banned": "Has sido baneado del servidor, Razon: %s, Expira: %s",
"reasonadd": " ( El jugador: %s ), ha sido baneado por: %s",
+ "bansuffix": ", ha sido baneado por: ",
"nongiven": "No se ha proporcionado",
"announcement": "Anuncio",
"announcementguide": "Send an announcement to all players",
diff --git a/language/fr.json b/language/fr.json
index 34705420..e41fee25 100644
--- a/language/fr.json
+++ b/language/fr.json
@@ -85,6 +85,7 @@
"kicked": "Éjecté par %s, Raison : %s",
"banned": "Vous avez été banni du serveur, \nRaison : %s, Expiration du bannissement : %s",
"reasonadd": " ( Pseudo : %s ), banni par : %s",
+ "bansuffix": ", banni par : ",
"nongiven": "Non autorisé",
"announcement": "Announcement",
"announcementguide": "Send an announcement to all players",
diff --git a/language/it.json b/language/it.json
index ff1426bc..3241bf60 100644
--- a/language/it.json
+++ b/language/it.json
@@ -84,6 +84,7 @@
"kicked": "Espulso da %s, Motivo: %s",
"banned": "Sei stato bandito da questo server, Motivo: %s, Il Ban Scade: %s",
"reasonadd": " ( Nickname: %s ), Bandito da: %s",
+ "bansuffix": ", Bandito da: ",
"nongiven": "Non fornito",
"announcement": "Announcement",
"announcementguide": "Send an announcement to all players",
diff --git a/language/nl.json b/language/nl.json
index d187605f..eaf7828f 100644
--- a/language/nl.json
+++ b/language/nl.json
@@ -85,6 +85,7 @@
"kicked": "Gekickt door %s, Reden: %s",
"banned": "Je bent verbannen van deze Server, Reden: %s, Ban Vervalt: %s",
"reasonadd": " ( Gebruikersnaam: %s ), Verbannen door: %s",
+ "bansuffix": ", Verbannen door: ",
"nongiven": "Geen reden opgegeven",
"announcement": "Mededeling",
"announcementguide": "Stuur een mededeling naar alle spelers",
diff --git a/language/pl.json b/language/pl.json
index 38c9b73b..0ee84b23 100644
--- a/language/pl.json
+++ b/language/pl.json
@@ -84,6 +84,7 @@
"kicked": "Wyrzucony przez %s, Powód: %s",
"banned": "Zostałeś zbanowany na tym serwerze, Powód: %s, Czas trwania: %s",
"reasonadd": " ( Gracz: %s ), Zablokowany przez: %s",
+ "bansuffix": ", Zablokowany przez: ",
"nongiven": "Nie podano",
"announcement": "Ogłoszenie",
"announcementguide": "Wyślij ogłoszenie do wszystkich graczy",
From 791be4569fa0edd1d282909fb06cbf9fa992e18e Mon Sep 17 00:00:00 2001
From: Grav <75702884+Gravxd@users.noreply.github.com>
Date: Tue, 30 Jan 2024 00:14:54 +0000
Subject: [PATCH 06/11] tweak(server/admin_server) extract ban reason
dynamically (works with diff languages)
---
server/admin_server.lua | 5 +++--
shared/util_shared.lua | 2 +-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/server/admin_server.lua b/server/admin_server.lua
index f1091a09..530810c3 100644
--- a/server/admin_server.lua
+++ b/server/admin_server.lua
@@ -948,7 +948,8 @@ Citizen.CreateThread(function()
PrintDebugMessage("Connection of "..getName(player).." Declined, Banned for "..blacklist[bi].reason..", Ban ID: "..blacklist[bi].banid.."\n", 3)
local banMessageTitleColour = GetConvar("ea_banMessageTitleColour", "#354557")
- local banMessageServerName = GetConvar("ea_banMessageServerName", GetConvar("sv_projectName", "EasyAdmin")) local banMessageShowStaff = GetConvar("ea_banMessageShowStaff", "true")
+ local banMessageServerName = GetConvar("ea_banMessageServerName", GetConvar("sv_projectName", "EasyAdmin"))
+ local banMessageShowStaff = GetConvar("ea_banMessageShowStaff", "true")
local banMessageStaffName = blacklist[bi].banner
local banMessageFooter = GetConvar("ea_banMessageFooter", "You can appeal this by ban by visiting our discord.")
local banMessageSubHeader = GetConvar("ea_banMessageSubHeader", "You have been banned from this server.")
@@ -958,7 +959,7 @@ Citizen.CreateThread(function()
banMessageStaffName = 'Server Staff'
end
- local banMessageReason = getStringUntilSuffix(blacklist[bi].reason, ", Banned by:")
+ local banMessageReason = getRawBanReason(blacklist[bi].reason, GetLocalisedText("bansuffix"))
-- gives us a raw ban reason with their nickname as we don't want the staff member displayed due to our new convar // "banned by:" field
deferrals.done(
diff --git a/shared/util_shared.lua b/shared/util_shared.lua
index 4f5bfb79..5c0d4980 100644
--- a/shared/util_shared.lua
+++ b/shared/util_shared.lua
@@ -330,7 +330,7 @@ function mergeTables(t1, t2)
end
-- used to get raw ban reason
-function getStringUntilSuffix(inputStr, suffix)
+function getRawBanReason(inputStr, suffix)
local endPos = string.find(inputStr, suffix)
if endPos then
return string.sub(inputStr, 1, endPos-1)
From 36d76b0795cb40d936fe3f4a84541d0a10af85d6 Mon Sep 17 00:00:00 2001
From: Grav <75702884+Gravxd@users.noreply.github.com>
Date: Wed, 31 Jan 2024 00:31:16 +0000
Subject: [PATCH 07/11] tweak(server/admin_server) replace IMGUR with local
data: link
---
server/admin_server.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/admin_server.lua b/server/admin_server.lua
index 530810c3..f632e3fc 100644
--- a/server/admin_server.lua
+++ b/server/admin_server.lua
@@ -953,7 +953,7 @@ Citizen.CreateThread(function()
local banMessageStaffName = blacklist[bi].banner
local banMessageFooter = GetConvar("ea_banMessageFooter", "You can appeal this by ban by visiting our discord.")
local banMessageSubHeader = GetConvar("ea_banMessageSubHeader", "You have been banned from this server.")
- local banMessageWatermark = GetConvar("ea_banMessageWatermark", "https://i.imgur.com/vRFuxUN.png")
+ local banMessageWatermark = GetConvar("ea_banMessageWatermark", "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAACACAYAAAB9V9ELAAAACXBIWXMAAC4jAAAuIwF4pT92AAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors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jnIfLtclbJD8ec1th3kHyX0I72+6rmraUd7ZzsJWmGHdN0Hvv1RQDQWI7JsNi9WmOqKCotZKY9lIqZoeJ16Q3/m7JqgVyR5yL5rpS10k1+ZMIO8g0g56m6se6TFlmCtMQS9FVt+PfX1RLvZcqPngi0WTTEaCxPWK7h7QbYl0dqsM6YoYE3U3wXxUbkLNc31aa5Nd7eQuVH1ZuRceI/XPn66DvaeOKfC3YWkPiDEgDU23nyxXS7Kv/e9ZYyU/HvkS/HNoobPe5K+b7vqK+FliteKf/Gxk85JQABAFpOL+XrJ9cqkgtrZ99Vk0vLtVJ/Tb5vei0cIF9knbaf7eW7vD0vXrFabycpPwTwWNVnDAoABAAAWth0+QaGku9W+CGnBGhbaAMAIOnQIPEfT+IPUAIAYM3whvKDE/WVH3AIACUAANqwfYPE/yUSf4AAAMCa4erg74s5HUDbRRUAgJw+kibb3x+q9AuHAFACAKANmCv/wqC/yb88CAAlAAAAgBIAAABAAAAAAAgAAAAAAQAAACAAAAAABAAAAIAAAAAAEAAAAAACAAAAQAAAAAAIAAAAAAEAAAAgAAAAAAQAAAAQAAAAAAIAAABAAAAAAAgAAAAAAQAAACAAAAAABAAAAIAAAAAAEAAAAAACAAAAQAAAAAAIAAAAAAEAAAAgAAAAAAQAAACAAAAAABAAAABAAAAAAAgAAAAAAQAAACAAAAAAbcD/DQD8XR5zKpwhlgAAAABJRU5ErkJggg==")
if banMessageShowStaff == "false" then
banMessageStaffName = 'Server Staff'
From 5973c1313b7cc247b9595bbde38440d09e35d330 Mon Sep 17 00:00:00 2001
From: Grav <75702884+Gravxd@users.noreply.github.com>
Date: Sat, 10 Feb 2024 20:06:01 +0000
Subject: [PATCH 08/11] tweak(language) remove un-needed locale in favour of
regex
---
language/de.json | 1 -
language/en.json | 1 -
language/es.json | 1 -
language/fr.json | 1 -
language/it.json | 1 -
language/nl.json | 1 -
language/pl.json | 1 -
7 files changed, 7 deletions(-)
diff --git a/language/de.json b/language/de.json
index b970002c..55e78aa1 100644
--- a/language/de.json
+++ b/language/de.json
@@ -85,7 +85,6 @@
"kicked": "Gekickt von %s, \nGrund: %s",
"banned": "Du wurdest von diesem server gebannt, \nGrund: %s, \nBann Läuft am %s ab.",
"reasonadd": " ( Spielername: %s ), \nGebannt von: %s",
- "bansuffix": ", \nGebannt von: ",
"nongiven": "Keinen gegeben",
"announcement": "Announcement",
"announcementguide": "Send an announcement to all players",
diff --git a/language/en.json b/language/en.json
index 201e9721..91035fcc 100644
--- a/language/en.json
+++ b/language/en.json
@@ -84,7 +84,6 @@
"kicked": "Kicked by %s, Reason: %s",
"banned": "You have been banned from this Server, Reason: %s, Ban Expires: %s",
"reasonadd": " ( Nickname: %s ), Banned by: %s",
- "bansuffix": ", Banned by: ",
"nongiven": "None Provided",
"announcement": "Announcement",
"announcementguide": "Send an announcement to all players",
diff --git a/language/es.json b/language/es.json
index f9594468..6b989164 100644
--- a/language/es.json
+++ b/language/es.json
@@ -84,7 +84,6 @@
"kicked": "Has sido kickeado por %s, Razon: %s",
"banned": "Has sido baneado del servidor, Razon: %s, Expira: %s",
"reasonadd": " ( El jugador: %s ), ha sido baneado por: %s",
- "bansuffix": ", ha sido baneado por: ",
"nongiven": "No se ha proporcionado",
"announcement": "Anuncio",
"announcementguide": "Send an announcement to all players",
diff --git a/language/fr.json b/language/fr.json
index e41fee25..34705420 100644
--- a/language/fr.json
+++ b/language/fr.json
@@ -85,7 +85,6 @@
"kicked": "Éjecté par %s, Raison : %s",
"banned": "Vous avez été banni du serveur, \nRaison : %s, Expiration du bannissement : %s",
"reasonadd": " ( Pseudo : %s ), banni par : %s",
- "bansuffix": ", banni par : ",
"nongiven": "Non autorisé",
"announcement": "Announcement",
"announcementguide": "Send an announcement to all players",
diff --git a/language/it.json b/language/it.json
index 3241bf60..ff1426bc 100644
--- a/language/it.json
+++ b/language/it.json
@@ -84,7 +84,6 @@
"kicked": "Espulso da %s, Motivo: %s",
"banned": "Sei stato bandito da questo server, Motivo: %s, Il Ban Scade: %s",
"reasonadd": " ( Nickname: %s ), Bandito da: %s",
- "bansuffix": ", Bandito da: ",
"nongiven": "Non fornito",
"announcement": "Announcement",
"announcementguide": "Send an announcement to all players",
diff --git a/language/nl.json b/language/nl.json
index eaf7828f..d187605f 100644
--- a/language/nl.json
+++ b/language/nl.json
@@ -85,7 +85,6 @@
"kicked": "Gekickt door %s, Reden: %s",
"banned": "Je bent verbannen van deze Server, Reden: %s, Ban Vervalt: %s",
"reasonadd": " ( Gebruikersnaam: %s ), Verbannen door: %s",
- "bansuffix": ", Verbannen door: ",
"nongiven": "Geen reden opgegeven",
"announcement": "Mededeling",
"announcementguide": "Stuur een mededeling naar alle spelers",
diff --git a/language/pl.json b/language/pl.json
index 0ee84b23..38c9b73b 100644
--- a/language/pl.json
+++ b/language/pl.json
@@ -84,7 +84,6 @@
"kicked": "Wyrzucony przez %s, Powód: %s",
"banned": "Zostałeś zbanowany na tym serwerze, Powód: %s, Czas trwania: %s",
"reasonadd": " ( Gracz: %s ), Zablokowany przez: %s",
- "bansuffix": ", Zablokowany przez: ",
"nongiven": "Nie podano",
"announcement": "Ogłoszenie",
"announcementguide": "Wyślij ogłoszenie do wszystkich graczy",
From c792fa34828573f2b7b0714b2eedf73b2abc3b4d Mon Sep 17 00:00:00 2001
From: Grav <75702884+Gravxd@users.noreply.github.com>
Date: Sat, 10 Feb 2024 20:06:18 +0000
Subject: [PATCH 09/11] tweak(server/admin_server) add regex to format ban
message reason
---
server/admin_server.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/admin_server.lua b/server/admin_server.lua
index f632e3fc..7faed5a7 100644
--- a/server/admin_server.lua
+++ b/server/admin_server.lua
@@ -959,7 +959,7 @@ Citizen.CreateThread(function()
banMessageStaffName = 'Server Staff'
end
- local banMessageReason = getRawBanReason(blacklist[bi].reason, GetLocalisedText("bansuffix"))
+ local banMessageReason = blacklist[bi].reason:gsub(string.format(", .*: %s", banMessageStaffName), "")
-- gives us a raw ban reason with their nickname as we don't want the staff member displayed due to our new convar // "banned by:" field
deferrals.done(
From 01031573353dc2b75640fd2b6138a26a91a24ebc Mon Sep 17 00:00:00 2001
From: Grav <75702884+Gravxd@users.noreply.github.com>
Date: Sat, 10 Feb 2024 20:07:42 +0000
Subject: [PATCH 10/11] fix(server/admin_server) set staff name AFTER regex to
avoid potential conflict
---
server/admin_server.lua | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/server/admin_server.lua b/server/admin_server.lua
index 7faed5a7..5a533db5 100644
--- a/server/admin_server.lua
+++ b/server/admin_server.lua
@@ -955,13 +955,13 @@ Citizen.CreateThread(function()
local banMessageSubHeader = GetConvar("ea_banMessageSubHeader", "You have been banned from this server.")
local banMessageWatermark = GetConvar("ea_banMessageWatermark", "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAACACAYAAAB9V9ELAAAACXBIWXMAAC4jAAAuIwF4pT92AAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQ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9lIqZoeJ16Q3/m7JqgVyR5yL5rpS10k1+ZMIO8g0g56m6se6TFlmCtMQS9FVt+PfX1RLvZcqPngi0WTTEaCxPWK7h7QbYl0dqsM6YoYE3U3wXxUbkLNc31aa5Nd7eQuVH1ZuRceI/XPn66DvaeOKfC3YWkPiDEgDU23nyxXS7Kv/e9ZYyU/HvkS/HNoobPe5K+b7vqK+FliteKf/Gxk85JQABAFpOL+XrJ9cqkgtrZ99Vk0vLtVJ/Tb5vei0cIF9knbaf7eW7vD0vXrFabycpPwTwWNVnDAoABAAAWth0+QaGku9W+CGnBGhbaAMAIOnQIPEfT+IPUAIAYM3whvKDE/WVH3AIACUAANqwfYPE/yUSf4AAAMCa4erg74s5HUDbRRUAgJw+kibb3x+q9AuHAFACAKANmCv/wqC/yb88CAAlAAAAgBIAAABAAAAAAAgAAAAAAQAAACAAAAAABAAAAIAAAAAAEAAAAAACAAAAQAAAAAAIAAAAAAEAAAAgAAAAAAQAAAAQAAAAAAIAAABAAAAAAAgAAAAAAQAAACAAAAAABAAAAIAAAAAAEAAAAAACAAAAQAAAAAAIAAAAAAEAAAAgAAAAAAQAAACAAAAAABAAAABAAAAAAAgAAAAAAQAAACAAAAAAbcD/DQD8XR5zKpwhlgAAAABJRU5ErkJggg==")
+ local banMessageReason = blacklist[bi].reason:gsub(string.format(", .*: %s", banMessageStaffName), "")
+ -- gives us a raw ban reason with their nickname as we don't want the staff member displayed due to our new convar // "banned by:" field
+
if banMessageShowStaff == "false" then
banMessageStaffName = 'Server Staff'
end
- local banMessageReason = blacklist[bi].reason:gsub(string.format(", .*: %s", banMessageStaffName), "")
- -- gives us a raw ban reason with their nickname as we don't want the staff member displayed due to our new convar // "banned by:" field
-
deferrals.done(
'' .. banMessageServerName .. '
'.. banMessageSubHeader ..'
Expires: ' ..
formatDateString(blacklist[bi].expire) .. '
Banned By: ' .. banMessageStaffName ..
From 028f94c6b346692743c66c392d1e9fc879b1612b Mon Sep 17 00:00:00 2001
From: Grav <75702884+Gravxd@users.noreply.github.com>
Date: Mon, 11 Mar 2024 11:38:36 +0000
Subject: [PATCH 11/11] tweak(shared/util_shared) remove ununsed function
reference
---
shared/util_shared.lua | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/shared/util_shared.lua b/shared/util_shared.lua
index 5c0d4980..0dfeaa00 100644
--- a/shared/util_shared.lua
+++ b/shared/util_shared.lua
@@ -329,16 +329,6 @@ function mergeTables(t1, t2)
return t
end
--- used to get raw ban reason
-function getRawBanReason(inputStr, suffix)
- local endPos = string.find(inputStr, suffix)
- if endPos then
- return string.sub(inputStr, 1, endPos-1)
- else
- return inputStr
- end
-end
-
-- terrible function to look for URLs in a string
function matchURL(text_with_URLs)