aboutsummaryrefslogtreecommitdiff
path: root/src/server/cmd/commands/property/create.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-04-27 17:02:09 +0000
committerFuwn <[email protected]>2021-04-27 17:02:09 +0000
commitfc5c05bce7a5f9d763d72b870717a530dfcf9524 (patch)
treea9112c07c3cef656be38715cf143797529fbdbb2 /src/server/cmd/commands/property/create.rs
parentetc: Add a Say Thanks button :) (diff)
downloadwhirl-fc5c05bce7a5f9d763d72b870717a530dfcf9524.tar.xz
whirl-fc5c05bce7a5f9d763d72b870717a530dfcf9524.zip
feature: New configuration file format
Diffstat (limited to 'src/server/cmd/commands/property/create.rs')
-rw-r--r--src/server/cmd/commands/property/create.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/cmd/commands/property/create.rs b/src/server/cmd/commands/property/create.rs
index 8521a8e..948f434 100644
--- a/src/server/cmd/commands/property/create.rs
+++ b/src/server/cmd/commands/property/create.rs
@@ -2,7 +2,7 @@
// SPDX-License-Identifier: GPL-3.0-only
use crate::{
- config::get_config,
+ config::Config,
server::{
cmd::constants::{PROPUPD, SESSINIT},
net::{
@@ -57,7 +57,7 @@ pub fn create_property_update_as_distributor() -> Vec<u8> {
},
NetworkProperty {
prop_id: VAR_APPNAME,
- value: get_config().unwrap().worldsmaster_username,
+ value: Config::get().unwrap().whirlsplash.worldsmaster_username,
},
],
)
@@ -98,7 +98,7 @@ pub fn create_property_update_as_hub() -> Vec<u8> {
},
NetworkProperty {
prop_id: VAR_APPNAME,
- value: get_config().unwrap().worldsmaster_username,
+ value: Config::get().unwrap().whirlsplash.worldsmaster_username,
},
],
)
@@ -115,7 +115,7 @@ pub fn create_property_request_as_distributor() -> Vec<u8> {
},
NetworkProperty {
prop_id: VAR_APPNAME,
- value: get_config().unwrap().worldsmaster_username,
+ value: Config::get().unwrap().whirlsplash.worldsmaster_username,
},
NetworkProperty {
prop_id: VAR_PROTOCOL,