From 54b1e1dd70933491e89dc78293eec9819812e97a Mon Sep 17 00:00:00 2001 From: Tom Early Date: Sun, 21 Apr 2019 13:19:27 -0700 Subject: [PATCH] different logs... --- QnetGateway.cpp | 2 +- ircddb/IRCProtocol.cpp | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/QnetGateway.cpp b/QnetGateway.cpp index effd65e..dbd39ec 100644 --- a/QnetGateway.cpp +++ b/QnetGateway.cpp @@ -595,7 +595,7 @@ bool CQnetGateway::get_yrcall_rptr(const std::string &call, std::string &arearp_ int rc = get_yrcall_rptr_from_cache(call, arearp_cs, zonerp_cs, mod, ip, RoU); pthread_mutex_unlock(&irc_data_mutex); if (rc == 0) { - printf("get_yrcall_rptr_from_cache: call='%s' arearp_cs='%s' zonerp_cs='%s', mod=%c ip='%s' RoU=%c\n", call.c_str(), arearp_cs.c_str(), zonerp_cs.c_str(), *mod, ip.c_str(), RoU); + //printf("get_yrcall_rptr_from_cache: call='%s' arearp_cs='%s' zonerp_cs='%s', mod=%c ip='%s' RoU=%c\n", call.c_str(), arearp_cs.c_str(), zonerp_cs.c_str(), *mod, ip.c_str(), RoU); return true; } else if (rc == 2) return false; diff --git a/ircddb/IRCProtocol.cpp b/ircddb/IRCProtocol.cpp index efbacd5..6d08089 100644 --- a/ircddb/IRCProtocol.cpp +++ b/ircddb/IRCProtocol.cpp @@ -176,12 +176,11 @@ bool IRCProtocol::processQueues(IRCMessageQueue *recvQ, IRCMessageQueue *sendQ) } } } else if (0 == m->command.compare("PRIVMSG")) { - std::string out; - m->composeMessage(out); - out.pop_back(); - out.pop_back(); - printf("%s\n", out.c_str()); if (app) { + std::string out; + m->composeMessage(out); + out.pop_back(); out.pop_back(); + printf("%s\n", out.c_str()); if (2 == m->numParams) { if (0 == m->params[0].compare(channel)) { app->msgChannel(m); @@ -189,6 +188,7 @@ bool IRCProtocol::processQueues(IRCMessageQueue *recvQ, IRCMessageQueue *sendQ) app->msgQuery(m); } } else if (3 == m->numParams) { + printf("currentNick=%s 0=%s 1=%s 2=%s\n", currentNick.c_str(), m->params[0].c_str(), m->params[1].c_str(), m->params[2].c_str()); // 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]);