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

Add config flag to disallow parties joining the lobby

This commit is contained in:
NG (Graham)
2026-06-22 19:22:28 -04:00
parent dddf1d5337
commit e65d0eeb80
4 changed files with 18 additions and 1 deletions

View File

@@ -319,6 +319,7 @@ impl <C: Clone + Send> super::ConfigProvider<C> for CubeConfig {
auto_signup: self.settings.server.auto_signup,
allow_signup: self.settings.server.allow_signup,
queue_mode: super::QueueChangeMode::from_persist(self.settings.server.queue_mode.clone()),
allow_parties: self.settings.server.allow_parties,
domain: self.settings.server.domain.to_owned(),
cdn_url: self.settings.server.cdn_url.trim_end_matches('/').to_owned(),
auth_url: self.settings.server.auth_url.trim_end_matches('/').to_owned(),

View File

@@ -97,6 +97,7 @@ pub struct ServerConfig {
pub auto_signup: bool,
pub allow_signup: bool,
pub queue_mode: QueueChangeMode,
pub allow_parties: bool,
pub domain: String,
pub cdn_url: String,
pub auth_url: String,

View File

@@ -99,6 +99,8 @@ pub struct ServerSettings {
pub allow_signup: bool,
#[serde(default)]
pub queue_mode: QueueMode,
#[serde(default = "default_true")]
pub allow_parties: bool,
#[serde(default = "default_domain_root")]
pub domain: String,
#[serde(default = "default_cdn_root_url")]
@@ -151,6 +153,7 @@ fn default_server_conf() -> ServerSettings {
auto_signup: false,
allow_signup: true,
queue_mode: QueueMode::Notify,
allow_parties: true,
domain: default_domain_root(),
cdn_url: default_cdn_root_url(),
auth_url: default_auth_root_url(),