Skip to content

Commit

Permalink
Merge pull request #11 from brendannee/master
Browse files Browse the repository at this point in the history
Allow port, security settings to work in config.json
  • Loading branch information
cpetzold committed Feb 14, 2012
2 parents 18bd0f8 + 459fed4 commit 96d6a76
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions index.js
Expand Up @@ -51,10 +51,7 @@ process.on('uncaughtException', function(e) {
* Initialize bot.
*/

var bot = new irc.Client(config.server, config.nickname, {
channels: config.channels
, debug: config.debug
});
var bot = new irc.Client(config.server, config.nickname, config);
bot.config = config;

/**
Expand Down

0 comments on commit 96d6a76

Please sign in to comment.