diff options
| author | Fuwn <[email protected]> | 2021-04-27 17:02:09 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-04-27 17:02:09 +0000 |
| commit | fc5c05bce7a5f9d763d72b870717a530dfcf9524 (patch) | |
| tree | a9112c07c3cef656be38715cf143797529fbdbb2 /src/server/hub.rs | |
| parent | etc: Add a Say Thanks button :) (diff) | |
| download | whirl-fc5c05bce7a5f9d763d72b870717a530dfcf9524.tar.xz whirl-fc5c05bce7a5f9d763d72b870717a530dfcf9524.zip | |
feature: New configuration file format
Diffstat (limited to 'src/server/hub.rs')
| -rw-r--r-- | src/server/hub.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/hub.rs b/src/server/hub.rs index 6a1480f..7513f12 100644 --- a/src/server/hub.rs +++ b/src/server/hub.rs @@ -14,7 +14,7 @@ use tokio_stream::StreamExt; use tokio_util::codec::{BytesCodec, Decoder}; use crate::{ - config::get_config, + config::Config, server::{ cmd::{ commands::{ @@ -85,8 +85,8 @@ impl Server for Hub { peer.bytes.get_mut() .write_all(&create_text(Text { - sender: get_config()?.worldsmaster_username, - content: get_config()?.worldsmaster_greeting, + sender: Config::get()?.whirlsplash.worldsmaster_username, + content: Config::get()?.distributor.worldsmaster_greeting, })).await?; peer.bytes.get_mut() .write_all(&create_action()).await?; |