summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus Eskola <fruitiex@gmail.com>2014-09-11 13:30:43 +0300
committerRasmus Eskola <fruitiex@gmail.com>2014-09-11 13:30:43 +0300
commite8e59584ee0b75987adb596b84115c6c98b34aad (patch)
treed4f41ccffe8b0059fa22d3e32e05fe818c47e954
parentcc36640ce0b50b556f828f720bae4a1722e6d8b5 (diff)
write logfiles not found message to active channel
-rw-r--r--backlog.cpp16
1 files changed, 11 insertions, 5 deletions
diff --git a/backlog.cpp b/backlog.cpp
index 50d93bd..58c04ae 100644
--- a/backlog.cpp
+++ b/backlog.cpp
@@ -178,12 +178,18 @@ void CBacklogMod::OnModCommand(const CString& sCommand) {
bool isInChan = CBacklogMod::inChan(Channel);
- if(printedLines == 0) {
- PutModule("No log files found for window " + Channel + " in " + DirPath + "/");
- return;
- } else if (isInChan) {
- m_pNetwork->PutUser(":***!znc@znc.in PRIVMSG " + Channel + " :Backlog playback...", GetClient());
+ if (isInChan) {
+ if(printedLines == 0) {
+ m_pNetwork->PutUser(":***!znc@znc.in PRIVMSG " + Channel + " :No log files found for window " + Channel + " in " + DirPath + "/", GetClient());
+ return;
+ }
+ m_pNetwork->PutUser(":***!znc@znc.in PRIVMSG " + Channel + " :Backlog playback...", GetClient());
} else {
+ if(printedLines == 0) {
+ PutModule("No log files found for window " + Channel + " in " + DirPath + "/");
+ return;
+ }
+
PutModule("*** Backlog playback...");
}