Fix wording in scripts/hash_passwords.py, fix brace in other file

This commit is contained in:
heinrich5991 2017-03-09 13:37:54 +01:00
parent 9d475f1301
commit 72f2eb32ee
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,