From 7e1ef923d661571218e9a8831226a9100ed17857 Mon Sep 17 00:00:00 2001 From: Wilbur Jaywright Date: Fri, 25 Oct 2024 10:51:48 -0400 Subject: [PATCH] Bugfix in anti-email username check --- src/rumchat_actor/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rumchat_actor/__init__.py b/src/rumchat_actor/__init__.py index db9c8f8..ff54ded 100644 --- a/src/rumchat_actor/__init__.py +++ b/src/rumchat_actor/__init__.py @@ -149,7 +149,7 @@ def __init__(self, init_message = "Hello, Rumble!", ignore_users = ["TheRumbleBo self.password = kwargs.get("password") #Username must not be an email - if "@" in self.username: + if self.username and "@" in self.username: print("Username cannot be provided as email, must be displayed username.") self.username = None