Skip to content

Commit

Permalink
".help <module>" fill now be resolved like it was ".help <module> mod…
Browse files Browse the repository at this point in the history
…ule"
  • Loading branch information
michaelortmann committed Oct 13, 2024
1 parent 4361914 commit 295a2e3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1247,6 +1247,13 @@ void tellhelp(int idx, char *file, struct flag_record *flags, int fl)

if (f)
lines = display_tellhelp(idx, file, f, flags);
else if (!strstr(file, " module")) {
char file_module[1024];
snprintf(file_module, sizeof file_module, "%s module", file);
f = resolve_help(HELP_DCC | fl, file_module);
if (f)
lines = display_tellhelp(idx, file_module, f, flags);
}
if (!lines && !(fl & HELP_TEXT))
dprintf(idx, "%s\n", IRC_NOHELP2);
}
Expand Down

0 comments on commit 295a2e3

Please sign in to comment.