Merge pull request #661 from heinrich5991/pr_ddnet_minor_fixes

Fix wording in scripts/hash_passwords.py, fix brace in other file
This commit is contained in:
east 2017-03-09 13:44:29 +01:00 committed by GitHub
commit 9d12b764c3
2 changed files with 3 additions and 2 deletions

View file

@ -16,7 +16,7 @@ def hash_password(password):
def auth_add_p_line(username, level, pwhash, salt):
if level not in ('admin', 'mod', 'moderator', 'helper'):
print("Warning: level ({}) not one of admin, mod and helper.".format(level), file=sys.stderr)
print("Warning: level ({}) not one of admin, mod or helper.".format(level), file=sys.stderr)
if repr(level) != "'{}'".format(level):
print("Warning: level ({}) contains weird symbols, config line is possibly malformed.".format(level), file=sys.stderr)
if repr(username) != "'{}'".format(username):

View file

@ -9,7 +9,8 @@
class CAuthManager
{
private:
enum { //:(
enum
{
AUTHED_NO = 0,
AUTHED_HELPER,
AUTHED_MOD,