From f8cd4d959cc1b1d454a769d4d25a94c42f4d4c91 Mon Sep 17 00:00:00 2001 From: ModulatingForce <116608425+modulatingforce@users.noreply.github.com> Date: Mon, 12 Feb 2024 15:27:52 -0500 Subject: [PATCH] mods are auto given mod user role --- src/core/identity.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/core/identity.rs b/src/core/identity.rs index 477a9e5..2ea8669 100644 --- a/src/core/identity.rs +++ b/src/core/identity.rs @@ -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 } },