From dcea97c896aa8a9cfa3384494a547b2ee9869706 Mon Sep 17 00:00:00 2001 From: Rasmus Eskola Date: Sat, 10 Aug 2013 18:43:49 +0300 Subject: messages when starting/stopping playback --- backlog.cpp | 15 +++++++++++++-- 1 file 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::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."); } } -- cgit v1.2.3