Changing the clients username will trigger a userupdate

This commit is contained in:
hydrabolt
2015-08-20 19:33:32 +01:00
parent be787e0951
commit 68db1f6ac0
4 changed files with 31 additions and 3 deletions

View File

@@ -208,6 +208,16 @@ exports.List.prototype.deepFilter = function( keys, value, onlyOne, caseInsen )
var buffer = child;
for ( key of keys ) {
if(buffer instanceof exports.List){
buffer = buffer.contents;
}
if(buffer instanceof Array){
for(elem of buffer){
if( change(elem[key]) == value ){
buffer = elem;
}
}
}
buffer = buffer[ key ];
}