Skip to content

Instantly share code, notes, and snippets.

@postwait
Created January 7, 2012 21:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save postwait/1576074 to your computer and use it in GitHub Desktop.
Save postwait/1576074 to your computer and use it in GitHub Desktop.
diff --git a/lib/plugins/irc.js b/lib/plugins/irc.js
index 4220ca3..42d9524 100644
--- a/lib/plugins/irc.js
+++ b/lib/plugins/irc.js
@@ -26,7 +26,8 @@ exports.run = function(dreadnot) {
config = dreadnot.config.plugins.irc;
async.forEach(Object.keys(config.channels), function(network, callback) {
- var client = new irc.Client(network, config.nick);
+ var options = config.connect_opts ? config.connect_opts[network] : null;
+ var client = new irc.Client(network, config.nick, options);
client.on('registered', function() {
var i;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment