Added hypen support to tell

For example "~tell Mu5tank05-mc hello?"
This commit is contained in:
Nathan Blaney 2013-09-05 16:04:03 +10:00
parent 6b3b4fc562
commit 114975d058

View file

@ -95,7 +95,7 @@ def tell(inp, nick='', chan='', db=None, input=None, notice=None):
notice("Thanks for the message, {}!".format(user_from))
return
if not re.match("^[A-Za-z0-9_|.-\]\[]*$", user_to.lower()):
if not re.match("^[A-Za-z0-9_|.\-\]\[]*$", user_to.lower()):
notice("I cant send a message to that user!")
return