Comparing version 0.3.5 to 0.3.6
@@ -320,2 +320,3 @@ /* | ||
self.emit('names', message.args[1], channel.users); | ||
self.emit('names' + message.args[1], channel.users); | ||
self.send('MODE', message.args[1]); | ||
@@ -693,3 +694,3 @@ } | ||
if ( args[args.length-1].match(/\s/) ) { | ||
if ( args[args.length-1].match(/\s/) || args[args.length-1].match(/^:/) || args[args.length-1] === "" ) { | ||
args[args.length-1] = ":" + args[args.length-1]; | ||
@@ -877,4 +878,4 @@ } | ||
// Parse parameters | ||
if ( line.indexOf(':') != -1 ) { | ||
match = line.match(/(.*)(?:^:|\s+:)(.*)/); | ||
if ( line.search(/^:|\s+:/) != -1 ) { | ||
match = line.match(/(.*?)(?:^:|\s+:)(.*)/); | ||
middle = match[1].trimRight(); | ||
@@ -895,1 +896,3 @@ trailing = match[2]; | ||
} // }}} | ||
exports.parseMessage = parseMessage; |
{ | ||
"name" : "irc", | ||
"description" : "An IRC client library for node", | ||
"version" : "0.3.5", | ||
"version" : "0.3.6", | ||
"author" : "Martyn Smith <martyn@dollyfish.net.nz>", | ||
"contributors" : [], | ||
"contributors" : [ { | ||
"name": "xAndy", | ||
"email": "xandy@hackerspace-bamberg.de" | ||
} ], | ||
"repository" : { | ||
@@ -8,0 +11,0 @@ "type" : "git", |
Sorry, the diff of this file is not supported yet
124615
17
1564