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

[Bug Fix] Fix IP Exemptions. #2189

Merged
merged 5 commits into from
May 28, 2022
Merged

[Bug Fix] Fix IP Exemptions. #2189

merged 5 commits into from
May 28, 2022

Conversation

Kinglykrab
Copy link
Contributor

  • IP Exemptions were broken due to GetAccountID() returning 0 in logic somehow, resolved this by setting a variable to GetAccountID() at the beginning of the method.
  • Fixed weird IP messages where the long form of IP was displayed instead of the string form.
  • Fixes edge case where IP rule may be set to -1 and this will make anyone get instantly kicked if IP Exemptions were enabled as their IP Count would always be greater than -1.

- IP Exemptions were broken due to GetAccountID() returning 0 in logic somehow, resolved this by setting a variable to GetAccountID() at the beginning of the method.
- Fixed weird IP messages where the long form of IP was displayed instead of the string form.
- Fixes edge case where IP rule may be set to -1 and this will make anyone get instantly kicked if IP Exemptions were enabled as their IP Count would always be greater than -1.
@Akkadius Akkadius requested a review from hgtw May 27, 2022 05:14
world/client.cpp Outdated Show resolved Hide resolved
world/client.cpp Outdated Show resolved Hide resolved
world/client.cpp Outdated Show resolved Hide resolved
world/clientlist.cpp Outdated Show resolved Hide resolved
world/clientlist.cpp Outdated Show resolved Hide resolved
world/clientlist.cpp Outdated Show resolved Hide resolved
@Kinglykrab Kinglykrab merged commit 7de50d0 into master May 28, 2022
@Kinglykrab Kinglykrab deleted the bug_fix/ip_exemptions branch May 28, 2022 03:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants