Skip to content

Commit 740fdfc

Browse files
author
Foxlet
committed
Bug with hyphenated users - foods.py
The hyphen was escaped to allow users such as test-test.
1 parent 08b4dbc commit 740fdfc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/foods.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from cloudbot import hook
99
from cloudbot.util import textgen
1010

11-
nick_re = re.compile("^[A-Za-z0-9_|.-\]\[]*$", re.I)
11+
nick_re = re.compile("^[A-Za-z0-9_|.\-\]\[]*$", re.I)
1212

1313
cakes = ['Chocolate', 'Ice Cream', 'Angel', 'Boston Cream', 'Birthday', 'Bundt', 'Carrot', 'Coffee', 'Devils', 'Fruit',
1414
'Gingerbread', 'Pound', 'Red Velvet', 'Stack', 'Welsh', 'Yokan']

0 commit comments

Comments
 (0)