diff options
author | Rasmus Eskola <fruitiex@gmail.com> | 2013-08-10 20:38:05 +0300 |
---|---|---|
committer | Rasmus Eskola <fruitiex@gmail.com> | 2013-08-10 20:38:05 +0300 |
commit | 2cb6d4004b21aa8086adb0d96ac60bd6c1f7741c (patch) | |
tree | fec65e1d5ac182347da8e26b82e50b68f028d4da | |
parent | acc9422d18eb1bf1c90c0ff1d6332963676d4f4f (diff) |
improve help texts in the module itself
-rw-r--r-- | backlog.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/backlog.cpp b/backlog.cpp index b6cec70..d998e64 100644 --- a/backlog.cpp +++ b/backlog.cpp @@ -46,8 +46,7 @@ bool CBacklogMod::OnLoad(const CString& sArgs, CString& sMessage) { LogPath = GetNV("LogPath"); if(LogPath.empty()) { // TODO: guess logpath? - PutModule("LogPath is empty, set it with the LogPath command"); - PutModule("Usage: LogPath <path> (use keywords $USER, $NETWORK, $WINDOW)"); + PutModule("LogPath is empty, set it with the LogPath command (help for more info)"); } } else { SetNV("LogPath", LogPath); @@ -62,12 +61,17 @@ CBacklogMod::~CBacklogMod() { void CBacklogMod::OnModCommand(const CString& sCommand) { if (sCommand.Token(0).CaseCmp("help") == 0) { // TODO: proper help text, look how AddHelpCommand() does it in other ZNC code - PutModule("Help"); + PutModule("Usage:"); + PutModule("<window-name> [num-lines] (e.g. #foo 42)"); + PutModule(""); + PutModule("Commands:"); + PutModule("Help (print this text)"); + PutModule("LogPath <path> (use keywords $USER, $NETWORK, $WINDOW and an asterisk * for date)"); return; } else if (sCommand.Token(0).CaseCmp("logpath") == 0) { if(sCommand.Token(1, true).empty()) { - PutModule("Usage: LogPath <path> (use keywords $USER, $NETWORK, $WINDOW)"); + PutModule("Usage: LogPath <path> (use keywords $USER, $NETWORK, $WINDOW and an asterisk * for date:)"); PutModule("Current LogPath is set to: " + GetNV("LogPath")); return; } |