summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus Eskola <fruitiex@gmail.com>2013-08-10 13:57:10 +0300
committerRasmus Eskola <fruitiex@gmail.com>2013-08-10 13:57:10 +0300
commit064ecd2d9e229f091714687ed65588f77e68183f (patch)
treec064658b29e8d6f76453b35abbc859476d0cf3de
parent975112680066ec87cd84dd5b6c33852adaf1a4a5 (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.cpp7
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) {