diff options
Diffstat (limited to 'mumlib')
| -rw-r--r-- | mumlib/src/command.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mumlib/src/command.rs b/mumlib/src/command.rs index 79bbc8b..4f4cf3a 100644 --- a/mumlib/src/command.rs +++ b/mumlib/src/command.rs @@ -67,12 +67,15 @@ pub enum CommandResponse { }, } +/// Messages sent to channels can be sent either to a named channel or the +/// currently connected channel. #[derive(Clone, Debug, Deserialize, Serialize)] pub enum ChannelTarget { - Default, + Current, Named(String) } +/// Messages can be sent to either channels or specific users. #[derive(Clone, Debug, Deserialize, Serialize)] pub enum MessageTarget { Channel(Vec<(ChannelTarget, bool)>), // (target, recursive) |
