diff --git a/xtrn/chat_pager/ircbot/pager.js b/xtrn/chat_pager/ircbot/pager.js index 857a309a0746165709dac2abd2939b72b504d218..aefd74e2bbee630645ff402305173094fd031c38 100644 --- a/xtrn/chat_pager/ircbot/pager.js +++ b/xtrn/chat_pager/ircbot/pager.js @@ -71,7 +71,7 @@ if (bot_cfg !== null && settings !== null) { var valname = "chat_" + cmd[1]; queue.write(system.timer, valname); } else { - var valname = system.temp_dir + "syspage_response." + cmd[1]; + var valname = system.ctrl_dir + "syspage_response." + cmd[1]; file_touch(valname); } } diff --git a/xtrn/chat_pager/page_sysop.js b/xtrn/chat_pager/page_sysop.js index 34ad2940c5749d7adb7bce5039a0ce8987214e9f..15edd0d548836843f4df6a0d78d9d160d5dee4c9 100644 --- a/xtrn/chat_pager/page_sysop.js +++ b/xtrn/chat_pager/page_sysop.js @@ -14,7 +14,7 @@ function get_last_queued_value(queue, valname) { } function get_node_response_time(filename) { - return (file_exists(filename) ? (file_date(filename) * 1000) : null); + return (file_exists(filename) ? file_date(filename) : null); } function await_page_response(settings, frame) { @@ -22,7 +22,7 @@ function await_page_response(settings, frame) { var queue = new Queue(settings.queue.queue_name); var valname = "chat_" + bbs.node_num; } else { - var valname = system.temp_dir + 'syspage_response.' + bbs.node_num; + var valname = system.ctrl_dir + 'syspage_response.' + bbs.node_num; } var answered = false; var stime = system.timer; @@ -57,6 +57,7 @@ function await_page_response(settings, frame) { if (frame.cycle()) { console.gotoxy(console.screen_columns, console.screen_rows); } + if (settings.queue.disabled && file_exists(valname)) file_remove(valname); return answered; }