aboutsummaryrefslogtreecommitdiffstats
path: root/mumlib/src
diff options
context:
space:
mode:
authorEskil Queseth <eskilq@kth.se>2020-10-17 16:16:23 +0200
committerEskil Queseth <eskilq@kth.se>2020-10-17 16:16:23 +0200
commitb10d20a20496eb9287975fc9fd9b688d59896031 (patch)
tree39739e0eafefdf8467f4bf1a9143bea17f1a69c3 /mumlib/src
parentd740d78b0b18543928355a7183ba770a6cc0368a (diff)
downloadmum-b10d20a20496eb9287975fc9fd9b688d59896031.tar.gz
change status data transfer struct
Diffstat (limited to 'mumlib/src')
-rw-r--r--mumlib/src/command.rs1
-rw-r--r--mumlib/src/state.rs15
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)]