Skip to content

Instantly share code, notes, and snippets.

@prawnsalad
Last active December 15, 2015 18:29
Show Gist options
  • Save prawnsalad/5303983 to your computer and use it in GitHub Desktop.
Save prawnsalad/5303983 to your computer and use it in GitHub Desktop.
var net = require('net'),
tls = require('tls'),
util = require('util'),
_ = require('lodash'),
EventEmitter2 = require('eventemitter2').EventEmitter2,
EventBinder = require('./eventbinder.js'),
IrcServer = require('./server.js'),
IrcChannel = require('./channel.js'),
IrcUser = require('./user.js'),
Socks;
// Break the Node.js version down into usable parts
var version_values = process.version.substr(1).split('.').map(function (item) {
return parseInt(item, 10);
});
// If we have a suitable Nodejs version, bring int he socks functionality
if (version_values[0] >= 10) {
Socks = require('../socks.js');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment