Skip to content
Snippets Groups Projects
Commit d13ca5fb authored by echicken's avatar echicken
Browse files

semaphore_scan_interval is really an ircbot setting; moved it to the...

semaphore_scan_interval is really an ircbot setting; moved it to the appropriate section, got rid of [scanner] section. Scanner does not need parameters.
parent fa863a42
No related branches found
No related tags found
No related merge requests found
...@@ -27,7 +27,7 @@ if (bot_cfg !== null && settings !== null) { ...@@ -27,7 +27,7 @@ if (bot_cfg !== null && settings !== null) {
var queue = new Queue(settings.queue.queue_name); var queue = new Queue(settings.queue.queue_name);
} }
var timer = new Timer(); var timer = new Timer();
var scanner = new Scanner(settings.scanner); var scanner = new Scanner();
var messages = []; var messages = [];
function scan_nodes() { function scan_nodes() {
...@@ -47,7 +47,7 @@ if (bot_cfg !== null && settings !== null) { ...@@ -47,7 +47,7 @@ if (bot_cfg !== null && settings !== null) {
); );
} }
timer.addEvent(settings.scanner.semaphore_scan_interval, true, scan_nodes); timer.addEvent(settings.ircbot.semaphore_scan_interval, true, scan_nodes);
function main(srv, target) { function main(srv, target) {
timer.cycle(); timer.cycle();
......
...@@ -42,7 +42,7 @@ function nodes_paging() { ...@@ -42,7 +42,7 @@ function nodes_paging() {
); );
} }
var Scanner = function (settings) { var Scanner = function () {
var node_stat; var node_stat;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment