Improved inactivity timeout and function key detection
This commit is contained in:
@@ -49,6 +49,9 @@ var INACTIVE ='\1n\1h\1RINACTIVITY DISCONNECT';
|
||||
|
||||
var NO_HISTORY_FRAMES =['980a','98b','981a'];
|
||||
var SYSTEM_OWNER =9;
|
||||
var INKEY_TIMEOUT =10000;
|
||||
var INACTIVE_NOLOGIN =1000;
|
||||
var INACTIVE_LOGIN =5*60000;
|
||||
|
||||
// Our frame object
|
||||
function TexFrame() {
|
||||
|
@@ -218,7 +218,7 @@ function pageEditor(page) {
|
||||
log(LOG_DEBUG,' - pageEditor: p='+p+'('+p.length+') user ['+JSON.stringify(frameusers)+'] - :'+frameusers.indexOf(user.number.toString()));
|
||||
|
||||
var re = new RegExp('^' + p, 'g');
|
||||
if (page.toString().match(re) && (frameusers.indexOf(user.number.toString()) == 1)) {
|
||||
if (page.toString().match(re) && (frameusers.indexOf(user.number.toString()) !== -1)) {
|
||||
pageditor = true;
|
||||
throw BreakException;
|
||||
}
|
||||
|
Reference in New Issue
Block a user