Copout HELP command

This commit is contained in:
John Reese 2011-01-13 22:58:49 -05:00
parent e2906f5aab
commit 828b51bb32
2 changed files with 10 additions and 1 deletions

View File

@ -41,6 +41,10 @@ you're done!
Commands Commands
-------- --------
* `help`
Links you to this fine document.
* `set <option> <value>` * `set <option> <value>`
Allows you to modify configuration values. Allows you to modify configuration values.

View File

@ -465,9 +465,14 @@ class CNotifoMod : public CModule
CString message = command.Token(1, true, " ", true); CString message = command.Token(1, true, " ", true);
send_message(message); send_message(message);
} }
// HELP command
else if (action == "help")
{
PutModule("View the detailed documentation at https://github.com/jreese/znc-notifo/blob/master/README.md");
}
else else
{ {
PutModule("Error: invalid command"); PutModule("Error: invalid command, try `help`");
} }
} }
}; };