Potential bug fix?

This commit is contained in:
hydrabolt
2015-10-26 17:58:08 +00:00
parent 265da4535d
commit af18e833f9
5 changed files with 17 additions and 18 deletions

View File

@@ -954,10 +954,6 @@ class Client {
var data;
if( role instanceof ServerPermissions || role.type === "role" ){
for(var key in updatedStuff){
role[key] = updatedStuff[key];
}
data = ad(updatedStuff);
data.id = role.id;
data.type = "role";

View File

@@ -25,7 +25,8 @@ class Member extends User{
get evalPerms(){
var basePerms = this.roles, //cache roles as it can be slightly expensive
basePerm = basePerms[0].packed;
basePerms = basePerms || [];
for(var perm of basePerms){
basePerm = basePerm | perm.packed;
}