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:
@@ -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": {
|
||||||
|
|||||||
@@ -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(), ¶ms[2])
|
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 {
|
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(),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -138,7 +138,6 @@ pub enum IntercomChatOperation {
|
|||||||
#[serde(tag = "system")]
|
#[serde(tag = "system")]
|
||||||
pub enum SystemChatOperation {
|
pub enum SystemChatOperation {
|
||||||
Permissions,
|
Permissions,
|
||||||
CheckPermissions,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user