We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 806f2f1 commit 66127f5Copy full SHA for 66127f5
src/irclineparser.js
@@ -27,12 +27,12 @@ function parseIrcLine(line) {
27
msg.tags = MessageTags.decode(matches[1]);
28
}
29
30
- msg.prefix = matches[2];
+ msg.prefix = matches[2] || '';
31
// Nick will be in the prefix slot if a full user mask is not used
32
- msg.nick = matches[3] || matches[2];
+ msg.nick = matches[3] || matches[2] || '';
33
msg.ident = matches[4] || '';
34
msg.hostname = matches[5] || '';
35
- msg.command = matches[6];
+ msg.command = matches[6] || '';
36
msg.params = matches[7] ? matches[7].split(/ +/) : [];
37
38
// Add the trailing param to the params list
0 commit comments