Esse commit está contido em:
V V
2015-10-19 18:11:47 +03:00
commit fed99d9b18
+2 -2
Ver Arquivo
@@ -687,13 +687,13 @@ struct command commands[];
/* {{{ client methods */
void do_help (struct command *command, int arg_num, struct arg args[], struct in_ev *ev) {
assert (arg_num <= 1);
assert (arg_num == 1);
if (ev) { mprint_start (ev); }
int total = 0;
mpush_color (ev, COLOR_YELLOW);
struct command *cmd = commands;
while (cmd->name) {
if (!arg_num || !strcmp (args[0].str, cmd->name)) {
if (!args[0].str || !strcmp (args[0].str, cmd->name)) {
mprintf (ev, "%s\n", cmd->desc);
total ++;
}