From 0465f0664ba5cb10b8e703f991df031f3e940760 Mon Sep 17 00:00:00 2001 From: "NG (Graham)" Date: Mon, 5 Jan 2026 17:26:16 -0500 Subject: [PATCH] Remove redundant permission command --- assets/robocraft/config.json | 9 --------- rc_chat_room/src/state/chat/config.rs | 10 ---------- rc_core/src/persist/chat.rs | 1 - 3 files changed, 20 deletions(-) diff --git a/assets/robocraft/config.json b/assets/robocraft/config.json index 9054b9d..399c36b 100644 --- a/assets/robocraft/config.json +++ b/assets/robocraft/config.json @@ -14517,15 +14517,6 @@ }, "permission": "Developer" }, - { - "regex": "\\?perms", - "op": { - "type": "BuiltIn", - "built_in": "System", - "system": "CheckPermissions" - }, - "permission": "Player" - }, { "regex": "\\?help", "op": { diff --git a/rc_chat_room/src/state/chat/config.rs b/rc_chat_room/src/state/chat/config.rs index 750e3cc..d5019e4 100644 --- a/rc_chat_room/src/state/chat/config.rs +++ b/rc_chat_room/src/state/chat/config.rs @@ -321,7 +321,6 @@ impl Intercom { enum System { Permissions, - CheckPermissions, } enum SystemPermission { @@ -380,7 +379,6 @@ impl System { fn from_persist(sys: oj_rc_core::persist::SystemChatOperation) -> Self { match sys { oj_rc_core::persist::SystemChatOperation::Permissions => Self::Permissions, - oj_rc_core::persist::SystemChatOperation::CheckPermissions => Self::CheckPermissions, } } @@ -408,13 +406,6 @@ impl System { format!("Granted {} to {} (they should re-log)", perm.display(), ¶ms[2]) } }, - Self::CheckPermissions => { - let is_royal = ctx.user.is_royal(); - let is_dev = ctx.user.is_dev(); - let is_admin = ctx.user.is_dev(); - let is_mod = ctx.user.is_mod(); - format!("r:{} dev:{} adm:{} mod:{}", is_royal as u8, is_dev as u8, is_admin as u8, is_mod as u8) - } } } @@ -422,7 +413,6 @@ impl System { fn do_help(&self) -> String { match self { Self::Permissions => "Grant permissions to an account".to_owned(), - Self::CheckPermissions => "Display permissions for current account".to_owned(), } } } diff --git a/rc_core/src/persist/chat.rs b/rc_core/src/persist/chat.rs index fcdb54f..a068dd2 100644 --- a/rc_core/src/persist/chat.rs +++ b/rc_core/src/persist/chat.rs @@ -138,7 +138,6 @@ pub enum IntercomChatOperation { #[serde(tag = "system")] pub enum SystemChatOperation { Permissions, - CheckPermissions, }