C0nw0nk/Garrys-Mod-Family-Sharing

TODO : IP Address Unban compatibility

C0nw0nk opened this issue · 1 comments

Posting this as a todo issue for myself for another time.

Based of my following solution that allows both family shared and the account that is the owner of that shared accounts games to be unbanned at the same time. #2 (comment)

When IP Ban setting is enabled, To allow IP addresses to be unbanned add / modify the offence on banhook via

RunConsoleCommand("ulx", "banid", lenderSteamID, time, offence .. "| IP:1.2.3.4")

Do regex check $ for end of offence reason where matched | IP:.*$

And on unban hook get the IP if exists from offence reason to unban their IP too.

if ply:query(string.lower(commandName)) and string.lower(commandName) == "ulx unban" then
--do stuff if global ipban setting enabled then allow users to also have their ip's removed from banlist if found
--pull the IP from the ban reason on the matching STEAMID
RunConsoleCommand("removeip 1.2.3.4")
RunConsoleCommand("writeip")
end

oh my god it's been 4 years and tempbans are still perma when ip banning is enabled
please do something