From 62647f53fd01a670cf5ad01c7d0a68cb69bf92cf Mon Sep 17 00:00:00 2001 From: Lakelezz <12222135+Lakelezz@users.noreply.github.com> Date: Fri, 22 Dec 2017 16:55:25 +0100 Subject: Better support for multiple delimiters on `Args` (#239) --- src/framework/standard/create_help_command.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/framework/standard/create_help_command.rs') diff --git a/src/framework/standard/create_help_command.rs b/src/framework/standard/create_help_command.rs index 7e4c338..aba38cc 100644 --- a/src/framework/standard/create_help_command.rs +++ b/src/framework/standard/create_help_command.rs @@ -177,12 +177,13 @@ impl CreateHelpCommand { pub(crate) fn finish(self) -> Arc { if self.0.striked_commands_tip == Some(String::new()) { let mut strike_text = String::from("~~`Striked commands`~~ are unavailable because they"); - let mut concat_with_comma = false; - if self.0.lacking_permissions == HelpBehaviour::Strike { + let mut concat_with_comma = if self.0.lacking_permissions == HelpBehaviour::Strike { let _ = write!(strike_text, " require permissions"); - concat_with_comma = true; - } + true + } else { + false + }; if self.0.lacking_role == HelpBehaviour::Strike { -- cgit v1.2.3