Created
January 7, 2012 21:17
-
-
Save postwait/1576074 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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