Permalink
Browse files

Added a couple vsprintf send_commands

  • Loading branch information...
1 parent 2dc0f8e commit cef6e5ce079d6748e1be2c9685f3752122e31ef5 @sent1nel committed Jun 23, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 index.js
View
@@ -22,6 +22,7 @@ function zIRCClient(stream, options) {
var self = this;
this.on("send", function (message) {
+ //this.send_command("PRIVMSG %s :%s", [ this.options.chan, message]);
this.send_command("PRIVMSG " + this.options.chan + " :" + message);
});
@@ -116,6 +117,7 @@ zIRCClient.prototype.send_command = function (command) {
}
console.log(command);
+ // this.commands_sent += !stream.write(vsprintf(command, args) + "\r\n");
this.commands_sent += !stream.write(command + "\r\n");
return true;
};

0 comments on commit cef6e5c

Please sign in to comment.