+int
+svccmd_send_help_brief(struct userNode *user, struct userNode *bot, struct svccmd *cmd) {
+ char cmdname[MAXLEN];
+ unsigned int nn;
+ int r;
+ /* Show command name (in bold). */
+ for (nn=0; cmd->name[nn]; nn++)
+ cmdname[nn] = toupper(cmd->name[nn]);
+ cmdname[nn] = 0;
+
+ /* Show the help entry for the underlying command. */
+ /* Lets not show help for a parent command, thats not what
+ * they asked for!
+ * return send_help(user, bot, cmd->command->parent->helpfile, cmd->command->name);
+ * TODO: We actually DO want to show the parent IF there is no other help.
+ */
+ /* If it's an alias, show what it's an alias for. */
+ if (cmd->alias.used) {
+ char alias_text[MAXLEN];
+ unsplit_string((char**)cmd->alias.list, cmd->alias.used, alias_text);
+ send_message(user, bot, "MCMSG_COMMAND_ALIASES", cmd->name, cmd->command->name);
+ }
+ r = send_help_brief(user, bot, cmd->command->parent->helpfile, cmd->name);
+ if(!r) {
+ if(cmd->command->name)
+ {
+ send_message(user, bot, "MCMSG_COMMAND_ALIASES", cmd->name, cmd->command->name);
+ r = send_help_brief(user, bot, cmd->command->parent->helpfile, cmd->command->name);
+ }
+ }
+
+ return r;
+}
+
+