From cbea20b8b225fb7e3162e921411b7549c3510d47 Mon Sep 17 00:00:00 2001 From: konekoneko Date: Sat, 31 May 2014 02:01:27 +0900 Subject: [PATCH] fix a typo --- chat.js | 6 ++++-- ipban.js | 2 +- room.js | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/chat.js b/chat.js index 9e3d294..853db1c 100644 --- a/chat.js +++ b/chat.js @@ -10,8 +10,10 @@ $splited_log_file_name = "logfile%d_%s.txt" //分割後のファイル名(%dと% var clients = new Array(); -var ipbanlist = new require("./ipban.js").IpBanCollecion(); -var $rooms = new require("./room.js").new RoomInfomationCollection(); +var IpBan = require("./ipban.js") +var ipbanlist = new IpBan(); +var RoomInfomationCollection = require("./room.js"); +var $rooms = new RoomInfomationCollection(); createLogDirectory(); diff --git a/ipban.js b/ipban.js index 5f2eca9..cd71581 100644 --- a/ipban.js +++ b/ipban.js @@ -1,5 +1,5 @@ //IPBANƒNƒ‰ƒX -module.exports.IpBanCollecion = function() +module.exports = function() { var config = require("./configure.js"); var MySQLPool = new require("./mysql_pool.js"); diff --git a/room.js b/room.js index c295da5..b64a059 100644 --- a/room.js +++ b/room.js @@ -1,5 +1,5 @@ //RoomInfomationCollecionƒNƒ‰ƒX -module.exports.RoomInfomationCollection = function() +module.exports = function() { var config = require("./configure.js"); var MySQLPool = new require("./mysql_pool.js"); -- 2.11.0