From b715b5530e2cc7752772a6731918573dae5faa7f Mon Sep 17 00:00:00 2001 From: Tom Early Date: Sun, 21 Apr 2019 12:35:06 -0700 Subject: [PATCH] better sendPing message --- ircddb/IRCDDBApp.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ircddb/IRCDDBApp.cpp b/ircddb/IRCDDBApp.cpp index 42c872e..4ea553a 100644 --- a/ircddb/IRCDDBApp.cpp +++ b/ircddb/IRCDDBApp.cpp @@ -447,9 +447,13 @@ 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)) { - printf("IRCDDBApp::sendPing: sending ping to %s\n", ircUser.c_str()); IRCMessage *rm = new IRCMessage(t, "IDRT_PING"); rm->addParam(from); + std::string out; + rm->composeMessage(out); + out.pop_back(); + out.pop_back(); + printf("IRCDDBApp::sendPing: %s\n", out.c_str()); d->sendQ->putMessage(rm); break; }