Skip to content

Commit

Permalink
Bugfix in anti-email username check
Browse files Browse the repository at this point in the history
  • Loading branch information
thelabcat committed Oct 25, 2024
1 parent 2bb4aa1 commit 7e1ef92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rumchat_actor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7e1ef92

Please sign in to comment.