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

collection of plugin cleanups #777

Merged
merged 6 commits into from
Jul 12, 2018
Merged

collection of plugin cleanups #777

merged 6 commits into from
Jul 12, 2018

Conversation

KyleSanderson
Copy link
Member

Just doing drive-bys on first-party plugins.

@@ -86,7 +86,7 @@ public void OnPluginStart()
}
}

public void OnMapStart()
public void OnConfigsExecuted()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LoadBanReasons doesn't rely on anything from a config file, OnMapStart is a better choice.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

g_BanReasonsPath is a config file :-)


if(g_Voted[client])
if (g_Voted[client])
Copy link
Member

@asherkin asherkin Mar 3, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will never be hit now.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch, thanks

@KyleSanderson KyleSanderson merged commit d0bf261 into master Jul 12, 2018
@KyleSanderson KyleSanderson deleted the thepawnining branch July 12, 2018 18:16
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.

2 participants