summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus Eskola <fruitiex@gmail.com>2013-08-10 18:43:49 +0300
committerRasmus Eskola <fruitiex@gmail.com>2013-08-10 18:43:49 +0300
commitdcea97c896aa8a9cfa3384494a547b2ee9869706 (patch)
tree74665d8662e7f824140885439849afee6f998374
parentd6dc8d55c949c7b926d7f35ef68e82ced3dfd772 (diff)
messages when starting/stopping playback
-rw-r--r--backlog.cpp15
1 files changed, 13 insertions, 2 deletions
diff --git a/backlog.cpp b/backlog.cpp
index 0e6fecd..af1fcc5 100644
--- a/backlog.cpp
+++ b/backlog.cpp
@@ -155,6 +155,15 @@ 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());
+ } else {
+ PutModule("*** Backlog playback...");
+ }
+
// now actually print
for (std::vector<CString>::reverse_iterator it = LinesToPrint.rbegin(); it != LinesToPrint.rend(); ++it) {
if(isInChan) {
@@ -169,8 +178,10 @@ void CBacklogMod::OnModCommand(const CString& sCommand) {
}
}
- if(printedLines == 0) {
- PutModule("No log files found for window " + Channel + " in " + DirPath + "/");
+ if (isInChan) {
+ m_pNetwork->PutUser(":***!znc@znc.in PRIVMSG " + Channel + " :" + "Playback complete.", GetClient());
+ } else {
+ PutModule("*** Playback complete.");
}
}