diff options
| author | Max Audron <audron@cocaine.farm> | 2025-02-23 13:48:19 +0100 |
|---|---|---|
| committer | Max Audron <audron@cocaine.farm> | 2025-02-23 13:48:19 +0100 |
| commit | 275b654a17b02d6293341bf8d0bd8f0091527cb3 (patch) | |
| tree | 5063eedb0862a11493f3392a0068bc0206cff450 /src/message/signalproxy/objects/chanmodes.rs | |
| parent | fix ircchannel and maplist network representation (diff) | |
fix server feature errors
Diffstat (limited to 'src/message/signalproxy/objects/chanmodes.rs')
| -rw-r--r-- | src/message/signalproxy/objects/chanmodes.rs | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/message/signalproxy/objects/chanmodes.rs b/src/message/signalproxy/objects/chanmodes.rs index a13a0bb..1161e28 100644 --- a/src/message/signalproxy/objects/chanmodes.rs +++ b/src/message/signalproxy/objects/chanmodes.rs @@ -1,31 +1,25 @@ use std::collections::HashMap; -use libquassel_derive::Setters; - use crate::{ message::NetworkMap, primitive::{StringList, Variant, VariantMap}, }; -#[derive(Debug, Clone, PartialEq, Setters)] +#[derive(Debug, Clone, PartialEq)] pub struct ChanModes { /// Modes that add or remove items from a list, like commonly +b for the banlist. /// /// Always require a parameter from server to client. /// Clients can request the whole list by leaving the parameter empty - #[setter(skip)] pub channel_modes_a: HashMap<char, StringList>, /// Modes that take a parameter as setting and require it when setting or removing the mode. - #[setter(skip)] pub channel_modes_b: HashMap<char, String>, /// Modes that take a parameter as setting, but only require it when setting the mode. - #[setter(skip)] pub channel_modes_c: HashMap<char, String>, /// Modes without a parameter. - #[setter(skip)] pub channel_modes_d: String, } @@ -136,9 +130,6 @@ mod tests { #[test] fn chanmodes_from_network() { - assert_eq!( - ChanModes::from_network_map(&mut get_network()), - get_runtime() - ) + assert_eq!(ChanModes::from_network_map(&mut get_network()), get_runtime()) } } |
