different logs...

pull/14/head
Tom Early 7 years ago
parent 57b2293420
commit 54b1e1dd70

@ -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;

@ -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]);

Loading…
Cancel
Save

Powered by TurnKey Linux.