diff options
Diffstat (limited to 'mumlib/src')
| -rw-r--r-- | mumlib/src/command.rs | 1 | ||||
| -rw-r--r-- | mumlib/src/state.rs | 15 |
2 files changed, 4 insertions, 12 deletions
diff --git a/mumlib/src/command.rs b/mumlib/src/command.rs index d273ee9..a216445 100644 --- a/mumlib/src/command.rs +++ b/mumlib/src/command.rs @@ -24,7 +24,6 @@ pub enum CommandResponse { channels: Channel, }, Status { - username: Option<String>, server_state: Server, }, } diff --git a/mumlib/src/state.rs b/mumlib/src/state.rs index 59f9c64..01a31ab 100644 --- a/mumlib/src/state.rs +++ b/mumlib/src/state.rs @@ -2,17 +2,10 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Debug, Deserialize, Serialize)] pub struct Server { - channels: Vec<Channel>, - welcome_text: Option<String>, -} - -impl Server { - pub fn new() -> Self { - Self { - channels: Vec::new(), - welcome_text: None, - } - } + pub channels: Channel, + pub welcome_text: Option<String>, + pub username: String, + pub host: String, } #[derive(Clone, Debug, Deserialize, Serialize)] |
