This commit is contained in:
psychobunny
2014-04-15 02:40:18 -04:00
parent 78dea8ea40
commit da665853e4
2 changed files with 4 additions and 4 deletions

View File

@@ -41,7 +41,7 @@ Sockets.init = function(server) {
files.splice(files.indexOf('index.js'), 1);
async.each(files, function(lib, next) {
if (lib.slice(0, -3) === '.js') {
if (lib.substr(lib.length - 3) === '.js') {
lib = lib.slice(0, -3);
Namespaces[lib] = require('./' + lib);
}