Skip to content

Plugin info update #176

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

Merged
merged 8 commits into from
Jan 12, 2017
Prev Previous commit
Fixed parsing public_convar
  • Loading branch information
Ayuto committed Jan 2, 2017
commit aaadc2d1f6a3bb60e972158981c5e2b2a10d11fe
Original file line number Diff line number Diff line change
Expand Up @@ -263,11 +263,12 @@ def _create_plugin_info(self, plugin_name):

@staticmethod
def _get_public_convar_from_info_file(info):
data = info.pop('public_convar', True)
data = info.pop('public_convar', 'True')
if isinstance(data, Section):
return data.dict()

return data
# False and 0 result in False, everything else is True
return data.lower() not in ('false', '0')

@staticmethod
def _get_display_in_listing_from_info_file(info):
Expand Down