diff options
| author | Eskil Queseth <eskilq@kth.se> | 2020-11-05 00:44:04 +0100 |
|---|---|---|
| committer | Eskil Queseth <eskilq@kth.se> | 2020-11-05 00:44:04 +0100 |
| commit | 22579ced3d1d847a14683fe3b47fa2076df01751 (patch) | |
| tree | 507d5c8ba721fb31cd58c207be8c0d66e12595c6 /mumd/src/state/user.rs | |
| parent | 4dd73f7b837572211b71483d62bbdfb1227d2aee (diff) | |
| download | mum-22579ced3d1d847a14683fe3b47fa2076df01751.tar.gz | |
add mute feature
Diffstat (limited to 'mumd/src/state/user.rs')
| -rw-r--r-- | mumd/src/state/user.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mumd/src/state/user.rs b/mumd/src/state/user.rs index 848208c..913f91b 100644 --- a/mumd/src/state/user.rs +++ b/mumd/src/state/user.rs @@ -129,6 +129,14 @@ impl User { pub fn self_deaf(&self) -> bool { self.self_deaf } + + pub fn suppressed(&self) -> bool { + self.suppress + } + + pub fn set_suppressed(&mut self, value: bool) { + self.suppress = value; + } } impl From<&User> for mumlib::state::User { |
