another log...

pull/14/head
Tom Early 7 years ago
parent a2d7917a4a
commit 7456a73f1c

@ -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); std::string ircUser = t + std::string("-") + std::to_string(j);
if (1 == d->user.count(ircUser)) { if (1 == d->user.count(ircUser)) {
std::string f(from);
ReplaceChar(f, ' ', '_');
IRCMessage *rm = new IRCMessage(ircUser, "IDRT_PING"); IRCMessage *rm = new IRCMessage(ircUser, "IDRT_PING");
rm->addParam(from); rm->addParam(from);
std::string out; std::string out;

@ -192,6 +192,11 @@ bool IRCProtocol::processQueues(IRCMessageQueue *recvQ, IRCMessageQueue *sendQ)
// pass this on to the replyQ so the gateway can PONG the sender // 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")) { if (0==m->params[0].compare(currentNick) && 0==m->params[1].compare("IDRT_PING")) {
IRCMessage *rm = new IRCMessage(m->params[1], m->params[2]); 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); app->putReplyMessage(rm);
} }
} }

Loading…
Cancel
Save

Powered by TurnKey Linux.