diff --git a/irc.py b/irc.py index 45bac0c..39cc974 100644 --- a/irc.py +++ b/irc.py @@ -248,7 +248,7 @@ class Message: The message's content. """ pattern = re.compile( - r"^:(?P[\w.~|]+)(?:!(?P\S+))? PRIVMSG (?P\S+) :(?P.+)" + r"^:(?P[\w.~|\-\[\]]+)(?:!(?P\S+))? PRIVMSG (?P\S+) :(?P.+)" ) def __init__(self, raw: str):