From 064ecd2d9e229f091714687ed65588f77e68183f Mon Sep 17 00:00:00 2001 From: Rasmus Eskola Date: Sat, 10 Aug 2013 13:57:10 +0300 Subject: WIP: print message log into correct window, currently does not work if that window is not joined TODO: - parse nickname from logs - check if channel is joined before sending messages there, otherwise use PutModule() --- backlog.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'backlog.cpp') diff --git a/backlog.cpp b/backlog.cpp index e8f806d..590d15d 100644 --- a/backlog.cpp +++ b/backlog.cpp @@ -154,7 +154,12 @@ void CBacklogMod::OnModCommand(const CString& sCommand) { // now actually print for (std::vector::reverse_iterator it = LinesToPrint.rbegin(); it != LinesToPrint.rend(); ++it) { - PutModule(*it); + // if(channel has been joined) { + CString Nick = "foo"; + m_pNetwork->PutUser(":" + Nick + "!znc@znc.in PRIVMSG " + Channel + " :" + *it, GetClient()); + // } else { + // PutModule(*it); + // } } if(printedLines == 0) { -- cgit v1.2.3