Merge pull request #115 from SpiceBot/development

Development
This commit is contained in:
Deathbybandaid 2019-09-18 08:35:14 -04:00 committed by GitHub
commit 66d69f815e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -474,10 +474,11 @@ class BotUsers():
return {"targetgood": False, "error": "It looks like " + self.nick_actual(target) + " is online right now, but in a different channel.", "reason": "diffchannel"}
# not a registered nick
if "unregged" not in targetbypass:
if bot.config.SpiceBot_regnick.regnick:
if str(target).lower() not in [x.lower() for x in self.dict["registered"]]:
return {"targetgood": False, "error": "It looks like " + self.nick_actual(target) + " is not a registered nick.", "reason": "unregged"}
# TODO
# if "unregged" not in targetbypass:
# if bot.config.SpiceBot_regnick.regnick:
# if str(target).lower() not in [x.lower() for x in self.dict["registered"]]:
# return {"targetgood": False, "error": "It looks like " + self.nick_actual(target) + " is not a registered nick.", "reason": "unregged"}
return targetgood