Move servers into servers.json instead of config.json
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user