Comparing version 1.1.7 to 1.1.8
@@ -27,3 +27,2 @@ var sys = require( 'sys' ) | ||
function _connect( options ) { | ||
var i | ||
bot = new IRC( options || {} ) | ||
@@ -33,14 +32,6 @@ bot | ||
.connect( function() { | ||
bot.once( 'ping', function() { | ||
setTimeout( function() { | ||
// Join channels | ||
if ( Array.isArray( bot.options.channels ) ) | ||
for ( i = 0; i < bot.options.channels.length; i++ ) | ||
this.join( bot.options.channels[i] ) | ||
// Call onConnect callback | ||
if ( options.onConnect ) | ||
options.onConnect() | ||
}.bind( this ), options.delayAfterConnect || 15000 ) | ||
}) | ||
if ( options.waitForPing ) | ||
bot.once( 'ping', _on_connect ) | ||
else | ||
_on_connect.call( bot ) | ||
}) | ||
@@ -56,2 +47,16 @@ | ||
function _on_connect() { | ||
setTimeout( function(){ | ||
// Join channels | ||
var i | ||
if ( Array.isArray( this.options.channels ) ) | ||
for ( i = 0; i < this.options.channels.length; i++ ) | ||
this.join( this.options.channels[i] ) | ||
// Call onConnect callback | ||
if ( this.options.onConnect ) | ||
this.options.onConnect() | ||
}.bind( this ), this.options.delayAfterConnect || 1000 ) | ||
} | ||
function _watch_for( pattern, hollaback ) { | ||
@@ -58,0 +63,0 @@ watchers.push([ pattern, hollaback ]) |
@@ -9,3 +9,3 @@ { "name" : "jerk" | ||
, "homepage" : "http://github.com/gf3/Jerk" | ||
, "version" : "1.1.7" | ||
, "version" : "1.1.8" | ||
, "main" : "./lib/jerk" | ||
@@ -12,0 +12,0 @@ , "dependencies" : |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
672418
19037
2