Skip to content

collection of plugin cleanups#777

Merged
KyleSanderson merged 6 commits intomasterfrom
thepawnining
Jul 12, 2018
Merged

collection of plugin cleanups#777
KyleSanderson merged 6 commits intomasterfrom
thepawnining

Conversation

@KyleSanderson
Copy link
Member

Just doing drive-bys on first-party plugins.

}

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 :-)

g_Voted[client] = false;

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