diff options
author | Rasmus Eskola <fruitiex@gmail.com> | 2013-08-10 13:13:40 +0300 |
---|---|---|
committer | Rasmus Eskola <fruitiex@gmail.com> | 2013-08-10 13:13:40 +0300 |
commit | 975112680066ec87cd84dd5b6c33852adaf1a4a5 (patch) | |
tree | e8b540184732f51f0545da01239b872eb1f36698 | |
parent | b555858e69c01e4394eb6dc6bc6c166329c4db22 (diff) |
tell user when no log files found
-rw-r--r-- | backlog.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/backlog.cpp b/backlog.cpp index e3a1e8b..e8f806d 100644 --- a/backlog.cpp +++ b/backlog.cpp @@ -156,6 +156,10 @@ void CBacklogMod::OnModCommand(const CString& sCommand) { for (std::vector<CString>::reverse_iterator it = LinesToPrint.rbegin(); it != LinesToPrint.rend(); ++it) { PutModule(*it); } + + if(printedLines == 0) { + PutModule("No log files found for window " + Channel + " in " + DirPath + "/"); + } } template<> void TModInfo<CBacklogMod>(CModInfo& Info) { |