summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus Eskola <fruitiex@gmail.com>2013-08-10 13:13:40 +0300
committerRasmus Eskola <fruitiex@gmail.com>2013-08-10 13:13:40 +0300
commit975112680066ec87cd84dd5b6c33852adaf1a4a5 (patch)
treee8b540184732f51f0545da01239b872eb1f36698
parentb555858e69c01e4394eb6dc6bc6c166329c4db22 (diff)
tell user when no log files found
-rw-r--r--backlog.cpp4
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) {