From 29d94bf297b5c91fc2e6d12576d519aa5fe9288b Mon Sep 17 00:00:00 2001 From: Daniel Date: Sat, 11 Jun 2016 21:03:59 +0100 Subject: [PATCH] Capitalise constructor. --- src/clientManager.js | 4 ++-- src/oidentd.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/clientManager.js b/src/clientManager.js index 420d4bf2..858e1f04 100644 --- a/src/clientManager.js +++ b/src/clientManager.js @@ -3,7 +3,7 @@ var fs = require("fs"); var Client = require("./client"); var mkdirp = require("mkdirp"); var Helper = require("./helper"); -var oidentd = require("./oidentd"); +var Oidentd = require("./oidentd"); module.exports = ClientManager; @@ -13,7 +13,7 @@ function ClientManager() { this.clients = []; if (typeof config.oidentd === "string") { - this.identHandler = new oidentd(config.oidentd); + this.identHandler = new Oidentd(config.oidentd); } } diff --git a/src/oidentd.js b/src/oidentd.js index d8193677..aa3819ad 100644 --- a/src/oidentd.js +++ b/src/oidentd.js @@ -1,7 +1,7 @@ var fs = require("fs"); var Helper = require("./helper"); -function oidentdFile(file) { +function OidentdFile(file) { this.file = Helper.expandHome(file); this.connectionId = 0; this.connections = {}; @@ -9,7 +9,7 @@ function oidentdFile(file) { this.refresh(); } -oidentdFile.prototype = { +OidentdFile.prototype = { hookSocket: function(socket, user) { var that = this; var id = null; @@ -70,4 +70,4 @@ oidentdFile.prototype = { }, }; -module.exports = oidentdFile; +module.exports = OidentdFile;