Skip to content
Browse files

Empty strings need prefixing too

  • Loading branch information...
1 parent 2faf5a5 commit 3588438da6fef5166ff5bccd346c04f80e4ecac4 @martynsmith committed Jan 10, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/irc.js
View
2 lib/irc.js
@@ -689,7 +689,7 @@ Client.prototype.send = function(command) { // {{{
// Note that the command arg is included in the args array as the first element
- if ( args[args.length-1].match(/\s/) || args[args.length-1].match(/^:/) ) {
+ if ( args[args.length-1].match(/\s/) || args[args.length-1].match(/^:/) || args[args.length-1] === "" ) {
args[args.length-1] = ":" + args[args.length-1];
}

0 comments on commit 3588438

Please sign in to comment.
Something went wrong with that request. Please try again.