X-Git-Url: http://git.pk910.de/?p=ircu2.10.12-pk.git;a=blobdiff_plain;f=ircd%2Fm_xquery.c;h=ac3786266a310d677fbfeff1f0e56ceaea718bf5;hp=c1cc4ec608ecb2c7ffb5656ef1525b0485f5e036;hb=475427901039c9c14ff5bcae9458f937ce89108d;hpb=f50e98744ac3e53605d59a2f313d610c9abc8f26 diff --git a/ircd/m_xquery.c b/ircd/m_xquery.c index c1cc4ec..ac37862 100644 --- a/ircd/m_xquery.c +++ b/ircd/m_xquery.c @@ -139,10 +139,14 @@ int ms_xquery(struct Client* cptr, struct Client* sptr, int parc, char* parv[]) return send_reply(sptr, SND_EXPLICIT | ERR_NOSUCHSERVER, "* :Server has disconnected"); - /* If it's to us, do nothing; otherwise, forward the query */ + /* Forward the query to its destination */ if (!IsMe(acptr)) sendcmdto_one(sptr, CMD_XQUERY, acptr, "%C %s :%s", acptr, parv[2], parv[3]); + else /* if it's to us, log it */ + log_write(LS_SYSTEM, L_NOTICE, 0, "Received extension query from " + "%#C to %#C routing %s; message: %s", sptr, acptr, + parv[2], parv[3]); return 0; }