mods are auto given mod user role
This commit is contained in:
parent
bac99f5845
commit
017d2426d2
1 changed files with 9 additions and 1 deletions
|
@ -585,7 +585,15 @@ impl IdentityManager {
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
_ => ( ) // <-- I'm assuming problem got to here
|
_ => {
|
||||||
|
println!("lock created > adding with a mod role o7");
|
||||||
|
roleslock.get_mut(&usr.to_lowercase())
|
||||||
|
// .expect("ERROR")
|
||||||
|
.unwrap()
|
||||||
|
.write().await
|
||||||
|
// .get_mut()
|
||||||
|
.push(UserRole::Mod(channelname.clone()));
|
||||||
|
}// <-- I'm assuming problem got to here
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue