From 7456a73f1c5272c3bb0b93c18af6c6057947fa94 Mon Sep 17 00:00:00 2001 From: Tom Early Date: Sun, 21 Apr 2019 12:54:40 -0700 Subject: [PATCH] another log... --- ircddb/IRCDDBApp.cpp | 2 ++ ircddb/IRCProtocol.cpp | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/ircddb/IRCDDBApp.cpp b/ircddb/IRCDDBApp.cpp index 02fba07..691c920 100644 --- a/ircddb/IRCDDBApp.cpp +++ b/ircddb/IRCDDBApp.cpp @@ -447,6 +447,8 @@ void IRCDDBApp::sendPing(const std::string &to, const std::string &from) std::string ircUser = t + std::string("-") + std::to_string(j); if (1 == d->user.count(ircUser)) { + std::string f(from); + ReplaceChar(f, ' ', '_'); IRCMessage *rm = new IRCMessage(ircUser, "IDRT_PING"); rm->addParam(from); std::string out; diff --git a/ircddb/IRCProtocol.cpp b/ircddb/IRCProtocol.cpp index 0b0a457..efbacd5 100644 --- a/ircddb/IRCProtocol.cpp +++ b/ircddb/IRCProtocol.cpp @@ -192,6 +192,11 @@ bool IRCProtocol::processQueues(IRCMessageQueue *recvQ, IRCMessageQueue *sendQ) // pass this on to the replyQ so the gateway can PONG the sender if (0==m->params[0].compare(currentNick) && 0==m->params[1].compare("IDRT_PING")) { IRCMessage *rm = new IRCMessage(m->params[1], m->params[2]); + std::string out; + rm->composeMessage(out); + out.pop_back(); + out.pop_back(); + printf("IRCProtocol::processQueues reply msg sent: %s\n", out.c_str()); app->putReplyMessage(rm); } }