Move servers into servers.json instead of config.json

This commit is contained in:
Cryptkeeper
2016-02-01 04:39:31 -06:00
parent 49889e6ab3
commit 878fe6496b
4 changed files with 166 additions and 166 deletions

View File

@ -1,9 +1,10 @@
var config = require('../config.json');
var servers = require('../servers.json');
// Checks if we have a server in config.json with the IP.
function serverWithIpExists(ip) {
for (var i = 0; i < config.servers.length; i++) {
var entry = config.servers[i];
for (var i = 0; i < servers.length; i++) {
var entry = servers[i];
if (entry.ip === ip) {
return true;