This commit is contained in:
Akulij 2025-03-28 15:48:57 +08:00
parent 61214ca405
commit b7c01addcf
3 changed files with 43 additions and 41 deletions

View File

@ -13,7 +13,9 @@ var assets = map[string]string {
} }
func handlePanel(bc BotController, user User) { func handlePanel(bc BotController, user User) {
if !user.IsAdmin() {return} if !user.IsAdmin() {
return
}
if !user.IsEffectiveAdmin() { if !user.IsEffectiveAdmin() {
bc.db.Model(&user).Update("RoleBitmask", user.RoleBitmask|0b10) bc.db.Model(&user).Update("RoleBitmask", user.RoleBitmask|0b10)
sendMessage(bc, user.ID, "You was in usermode, turned back to admin mode...") sendMessage(bc, user.ID, "You was in usermode, turned back to admin mode...")