Fix parsing error

This commit is contained in:
Shadow15510 2023-06-09 22:02:09 +02:00
parent 5f2b57d9ad
commit 20df81a28c
1 changed files with 1 additions and 1 deletions

2
irc.py
View File

@ -248,7 +248,7 @@ class Message:
The message's content.
"""
pattern = re.compile(
r"^:(?P<author>[\w.~|]+)(?:!(?P<host>\S+))? PRIVMSG (?P<to>\S+) :(?P<text>.+)"
r"^:(?P<author>[\w.~|\-\[\]]+)(?:!(?P<host>\S+))? PRIVMSG (?P<to>\S+) :(?P<text>.+)"
)
def __init__(self, raw: str):