diff --git a/plugins/cake.py b/plugins/cake.py index 109da3fb..f9dcc25c 100644 --- a/plugins/cake.py +++ b/plugins/cake.py @@ -12,8 +12,9 @@ def cake(inp, action=None): """cake - Gives an awesome cake.""" inp = inp.strip() - if not re.match("^[A-Za-z0-9_|.-\]\[]*$", inp.lower()): - return "I can't give an awesome cake to that user!" + if " " in inp: + notice("Invalid username!") + return cake_type = random.choice(cakes) size = random.choice(['small', 'little', 'mid-sized', 'medium-sized', 'large', 'gigantic'])