ModulesManager #37

Merged
modulatingforce merged 22 commits from modulesmanager into main 2024-03-22 21:34:08 -04:00
2 changed files with 886 additions and 24 deletions
Showing only changes of commit 8b4c21ba58 - Show all commits

File diff suppressed because it is too large Load diff

View file

@ -630,7 +630,8 @@ impl IdentityManager {
}
}
async fn add_role(&self, trgchatter: String, trg_role: UserRole) {
// => 03.22 - Force - Made public because botmodules unit tests
pub async fn add_role(&self, trgchatter: String, trg_role: UserRole) {
let mut srulock = self.special_roles_users.write().await;
let mut usrrolelock = srulock
.get_mut(&trgchatter)
@ -652,7 +653,8 @@ impl IdentityManager {
}
}
async fn affirm_chatter_in_db(&self, trgchatter: String) {
// => 03.22 - Force - Made public because botmodules unit tests
pub async fn affirm_chatter_in_db(&self, trgchatter: String) {
let mut srulock = self.special_roles_users.write().await;
srulock
.entry(trgchatter.clone())