Permalink
Browse files

Default IRC pending should be 1 sec, not no pending. Change Jenkins c…

…onsole interval handling to allow undefined opts.
  • Loading branch information...
1 parent 1c78d9e commit bdef9ff1efc115de35dfba2548dd1f6227432ff4 @cliffano committed Feb 3, 2013
Showing with 2 additions and 4 deletions.
  1. +1 −3 lib/irc.js
  2. +1 −1 lib/jenkins.js
View
@@ -91,8 +91,6 @@ function _version() {
* @param {String} nick: optional nickname, defaults to 'nestor'
*/
function start(host, channel, nick) {
- const PENDING = 1000;
-
var commands = {
build: _build,
stop: _stop,
@@ -105,7 +103,7 @@ function start(host, channel, nick) {
};
bot = new Bot(commands);
- bot.connect(host, channel, { nick: nick, pending: PENDING });
+ bot.connect(host, channel, { nick: nick });
}
exports.start = start;
View
@@ -123,7 +123,7 @@ Jenkins.prototype.console = function (jobName, opts, cb) {
}
setTimeout(function () {
cb();
- }, opts.interval || INTERVAL);
+ }, (opts && opts.interval) ? opts.interval : INTERVAL);
}
});
},

0 comments on commit bdef9ff

Please sign in to comment.