aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-05-01 23:36:56 +0000
committerFuwn <[email protected]>2021-05-01 23:36:56 +0000
commit5dfc1c46443adf0e082a29db69bad89c91b2e9e2 (patch)
tree1a71bc19072a76d5e7d5792a71bd0a43ad48cb73 /src
parentfeat(cmds): trait based commands (diff)
downloadwhirl-5dfc1c46443adf0e082a29db69bad89c91b2e9e2.tar.xz
whirl-5dfc1c46443adf0e082a29db69bad89c91b2e9e2.zip
refactor(cmds): remove unimplemented command: whisper
When it's time comes, the action command will be implemented, however, at this moment it was serving no purpose.
Diffstat (limited to 'src')
-rw-r--r--src/server/cmd/commands/mod.rs1
-rw-r--r--src/server/cmd/commands/text.rs23
-rw-r--r--src/server/cmd/commands/whisper.rs2
3 files changed, 12 insertions, 14 deletions
diff --git a/src/server/cmd/commands/mod.rs b/src/server/cmd/commands/mod.rs
index 0d5fc1c..49758c2 100644
--- a/src/server/cmd/commands/mod.rs
+++ b/src/server/cmd/commands/mod.rs
@@ -10,4 +10,3 @@ pub mod subscribe_distance;
pub mod subscribe_room;
pub mod teleport;
pub mod text;
-pub mod whisper;
diff --git a/src/server/cmd/commands/text.rs b/src/server/cmd/commands/text.rs
index 047dedf..a286a14 100644
--- a/src/server/cmd/commands/text.rs
+++ b/src/server/cmd/commands/text.rs
@@ -41,21 +41,22 @@ impl Creatable for Text {
}
}
impl ParsableWithArguments for Text {
- /// The first and only element of `args` *should* be the username of the sender.
+ /// The first and only element of `args` *should* be the username of the
+ /// sender.
///
- /// There isn't anything currently stopping someone from passing some other value so that might be
- /// annoying at times.
+ /// There isn't anything currently stopping someone from passing some other
+ /// value so that might be annoying at times.
///
- /// Realistically, this method is mostly static so the username will *always* be passed properly
- /// unless someone intentionally commits breaking changes on purpose regarding what is passed to
- /// to this method where called.
+ /// Realistically, this method is mostly static so the username will *always*
+ /// be passed properly unless someone intentionally commits breaking changes
+ /// on purpose regarding what is passed to to this method where called.
///
- /// It would be neat to have some sort of ability to statically check if the `args` argument
- /// contains x number of elements at compile time or something of the sort but the Rust RFC is
- /// probably not focused on that.
+ /// It would be neat to have some sort of ability to statically check if the
+ /// `args` argument contains x number of elements at compile time or
+ /// something of the sort but the Rust RFC is probably not focused on that.
///
- /// So, right now, trust is in the developers' hands to make sure to pass the right -- number
- /// -- of elements to `args`.
+ /// So, right now, trust is in the developers' hands to make sure to pass the
+ /// right -- number -- of elements to `args`.
fn parse(data: Vec<u8>, args: &[&str]) -> Self {
Self {
sender: args[0].to_string(),
diff --git a/src/server/cmd/commands/whisper.rs b/src/server/cmd/commands/whisper.rs
deleted file mode 100644
index 5cf4e50..0000000
--- a/src/server/cmd/commands/whisper.rs
+++ /dev/null
@@ -1,2 +0,0 @@
-// Copyleft (ɔ) 2021-2021 The Whirlsplash Collective
-// SPDX-License-Identifier: GPL-3.0-only