IRC: allow empty host as ZNC seems to send empty one sometimes

This commit is contained in:
nemunaire 2015-02-22 15:29:10 +01:00
parent 806ff1d4a0
commit 06bc0a7693

View File

@ -274,7 +274,7 @@ mgx = re.compile(b'''^(?:@(?P<tags>[^ ]+)\ )?
(?::(?P<prefix>
(?P<nick>[^!@ ]+)
(?: !(?P<user>[^@ ]+))?
(?:@(?P<host>[^ ]+))?
(?:@(?P<host>[^ ]*))?
)\ )?
(?P<command>(?:[a-zA-Z]+|[0-9]{3}))
(?P<params>(?:\ [^:][^ ]*)*)(?:\ :(?P<trailing>.*))?