From 4244a5ad181c20fd5c1a658eba052a4dcf5dc118 Mon Sep 17 00:00:00 2001 From: shibedrill <53824200+shibedrill@users.noreply.github.com> Date: Thu, 25 Apr 2024 11:00:58 -0400 Subject: [PATCH] add license --- LICENSE.txt | 21 +++++++++++++++++++++ src/command/util.rs | 1 - 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 LICENSE.txt diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..4ef6145 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2024 shibedrill + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/src/command/util.rs b/src/command/util.rs index 635e221..b527f7d 100644 --- a/src/command/util.rs +++ b/src/command/util.rs @@ -79,7 +79,6 @@ pub async fn remove_channel( if let Some(channel_ok) = channel { let config = &mut ctx.data().config_manager.lock().await; let channel_id = { u64::from(channel_ok.id()) }; - //let found = config.channels.iter().find(|c| c.id() == channel_ok.id()); config.channels.retain(|c| c.id() != channel_ok.id()); config.store().unwrap(); ctx.say(format!(