1
0
mirror of https://git.ngram.ca/OpenJam/rc-servers synced 2026-08-23 23:08:52 +00:00

Remove redundant permission command

This commit is contained in:
NG (Graham)
2026-01-05 17:26:16 -05:00
parent 6211c930ba
commit 0465f0664b
3 changed files with 0 additions and 20 deletions

View File

@@ -14517,15 +14517,6 @@
}, },
"permission": "Developer" "permission": "Developer"
}, },
{
"regex": "\\?perms",
"op": {
"type": "BuiltIn",
"built_in": "System",
"system": "CheckPermissions"
},
"permission": "Player"
},
{ {
"regex": "\\?help", "regex": "\\?help",
"op": { "op": {

View File

@@ -321,7 +321,6 @@ impl Intercom {
enum System { enum System {
Permissions, Permissions,
CheckPermissions,
} }
enum SystemPermission { enum SystemPermission {
@@ -380,7 +379,6 @@ impl System {
fn from_persist(sys: oj_rc_core::persist::SystemChatOperation) -> Self { fn from_persist(sys: oj_rc_core::persist::SystemChatOperation) -> Self {
match sys { match sys {
oj_rc_core::persist::SystemChatOperation::Permissions => Self::Permissions, 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(), &params[2]) format!("Granted {} to {} (they should re-log)", perm.display(), &params[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 { fn do_help(&self) -> String {
match self { match self {
Self::Permissions => "Grant permissions to an account".to_owned(), Self::Permissions => "Grant permissions to an account".to_owned(),
Self::CheckPermissions => "Display permissions for current account".to_owned(),
} }
} }
} }

View File

@@ -138,7 +138,6 @@ pub enum IntercomChatOperation {
#[serde(tag = "system")] #[serde(tag = "system")]
pub enum SystemChatOperation { pub enum SystemChatOperation {
Permissions, Permissions,
CheckPermissions,
} }