Commit 1dcd658928
Unregistered key
Layout: unified · split
src/commands.rs +4
| @@ -475,6 +475,10 @@ fn iamb_room(desc: CommandDescription, ctx: &mut ProgContext) -> ProgResult { | |||
| 475 | ("topic", "unset", None) => RoomAction::Unset(RoomField::Topic).into(), | 475 | ("topic", "unset", None) => RoomAction::Unset(RoomField::Topic).into(), |
| 476 | ("topic", "unset", Some(_)) => return Result::Err(CommandError::InvalidArgument), | 476 | ("topic", "unset", Some(_)) => return Result::Err(CommandError::InvalidArgument), |
| 477 | 477 | ||
| 478 | // :room topic show | ||
| 479 | ("topic", "show", None) => RoomAction::Show(RoomField::Topic).into(), | ||
| 480 | ("topic", "show", Some(_)) => return Result::Err(CommandError::InvalidArgument), | ||
| 481 | |||
| 478 | // :room tag set <tag-name> | 482 | // :room tag set <tag-name> |
| 479 | ("tag", "set", Some(s)) => RoomAction::Set(RoomField::Tag(tag_name(s)?), "".into()).into(), | 483 | ("tag", "set", Some(s)) => RoomAction::Set(RoomField::Tag(tag_name(s)?), "".into()).into(), |
| 480 | ("tag", "set", None) => return Result::Err(CommandError::InvalidArgument), | 484 | ("tag", "set", None) => return Result::Err(CommandError::InvalidArgument), |