diff options
author | Rasmus Eskola <fruitiex@gmail.com> | 2013-08-10 13:57:10 +0300 |
---|---|---|
committer | Rasmus Eskola <fruitiex@gmail.com> | 2013-08-10 13:57:10 +0300 |
commit | 064ecd2d9e229f091714687ed65588f77e68183f (patch) | |
tree | c064658b29e8d6f76453b35abbc859476d0cf3de | |
parent | 975112680066ec87cd84dd5b6c33852adaf1a4a5 (diff) |
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()
-rw-r--r-- | backlog.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
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<CString>::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) { |