Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TODO : IP Address Unban compatibility #3

Open
C0nw0nk opened this issue Feb 20, 2017 · 1 comment
Open

TODO : IP Address Unban compatibility #3

C0nw0nk opened this issue Feb 20, 2017 · 1 comment

Comments

@C0nw0nk
Copy link
Owner

C0nw0nk commented Feb 20, 2017

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
@Fasteroid
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants