Skip to content

Commit

Permalink
Enhancement: "help-helpfile" config option for replacing !help nulla…
Browse files Browse the repository at this point in the history
…ry-arg helpfile
  • Loading branch information
Havvy committed Jan 20, 2015
1 parent d5d3246 commit 7712faf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugin/help.sjs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ module.exports = {
},

help: {
help: [
help: client.config("help-helpfile") || [
"{{!}}help <query>",
" ",
"Display the help message for the topic located at the given query.",
Expand Down
4 changes: 4 additions & 0 deletions src/test/plugin-help.sjs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ const client = {
return "@";
}

if (value === "help-helpfile") {
return undefined;
}

throw new Error(format("Error in testing: Plugin expects config value (%s) we don't have.", value));
}
};
Expand Down

0 comments on commit 7712faf

Please sign in to comment.