var hr=location.href.match(/^\w+:\/\/[^/]*\/([^?#]+)/);
if(hr==null) return status;
var depth=hr[1].split(/\//).length;
- var re=new RegExp("\n\[\s*(admins|moderators|banned)\s*\]\s*\n"+user+"\n","m");
+ var re=new RegExp("\n\[\s*(admins|moderators|banned)\s*\]\s*[^[]+\n"+user+"\n","m");
for(var path="",i=0;i<depth;path+="../",i++) {
xhr.open(GET, path+"perms.txt",false);
xhr.send("");