From 3b2ec421a6a5e1da974cee5584c419aecdc8d140 Mon Sep 17 00:00:00 2001 From: Twentysix Date: Sun, 13 Mar 2016 06:30:54 +0100 Subject: [PATCH] Further restrictions to owner ID configuration --- red.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/red.py b/red.py index bd73d7282..4ab2c73fd 100644 --- a/red.py +++ b/red.py @@ -371,8 +371,9 @@ def check_configs(): print("If you want, you can also do it later with [prefix]set owner. Leave empty in that case.") settings.owner = input("\nID> ") if settings.owner == "": settings.owner = "id_here" - if not settings.owner.isdigit() and settings.owner != "id_here": - print("\nERROR: What you entered is not a valid ID. Set yourself as owner later with [prefix]set owner") + if not settings.owner.isdigit() or len(settings.owner) < 17: + if settings.owner != "id_here": + print("\nERROR: What you entered is not a valid ID. Set yourself as owner later with [prefix]set owner") settings.owner = "id_here" print("\nInput the admin role's name. Anyone with this role will be able to use the bot's admin commands")