node-irc icon indicating copy to clipboard operation
node-irc copied to clipboard

Add IRCv3 tag support to parseMessage

Open MzHub opened this issue 8 years ago • 2 comments

http://ircv3.net/specs/core/message-tags-3.2.html

Old syntax:

<message>  ::= [':' <prefix> <SPACE> ] <command> <params> <crlf>

New syntax:

<message>  ::= ['@' <tags> <SPACE>] [':' <prefix> <SPACE> ] <command> <params> <crlf>

where

<tags>          ::= <tag> [';' <tag>]*
<tag>           ::= <key> ['=' <escaped value>]
<key>           ::= [ <vendor> '/' ] <sequence of letters, digits, hyphens (`-`)>
<escaped value> ::= <sequence of any characters except NUL, CR, LF, semicolon (`;`) and SPACE>
<vendor>        ::= <host>

MzHub avatar Sep 23 '15 20:09 MzHub

Apparently there is irc-message in npm too, which supports IRCv3.

MzHub avatar Sep 24 '15 17:09 MzHub

My plan is to use irc-message to parse messages.

jirwin avatar Jan 29 '16 02:01 jirwin