projects
/
ircu2.10.12-pk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Author: Kev <klmitch@mit.edu>
[ircu2.10.12-pk.git]
/
ircd
/
m_xquery.c
diff --git
a/ircd/m_xquery.c
b/ircd/m_xquery.c
index 49d7e7ebdec51404d496febfb6da4085c6b21f00..ac3786266a310d677fbfeff1f0e56ceaea718bf5 100644
(file)
--- a/
ircd/m_xquery.c
+++ b/
ircd/m_xquery.c
@@
-83,6
+83,7
@@
#include "client.h"
#include "ircd.h"
#include "ircd_log.h"
#include "client.h"
#include "ircd.h"
#include "ircd_log.h"
+#include "ircd_reply.h"
#include "ircd_string.h"
#include "msg.h"
#include "numeric.h"
#include "ircd_string.h"
#include "msg.h"
#include "numeric.h"
@@
-101,7
+102,7
@@
*/
int mo_xquery(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
{
*/
int mo_xquery(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
{
- struct
c
lient* acptr;
+ struct
C
lient* acptr;
if (parc < 4) /* have enough parameters? */
return need_more_params(sptr, "XQUERY");
if (parc < 4) /* have enough parameters? */
return need_more_params(sptr, "XQUERY");
@@
-128,7
+129,7
@@
int mo_xquery(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
*/
int ms_xquery(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
{
*/
int ms_xquery(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
{
- struct
c
lient* acptr;
+ struct
C
lient* acptr;
if (parc < 4) /* have enough parameters? */
return need_more_params(sptr, "XQUERY");
if (parc < 4) /* have enough parameters? */
return need_more_params(sptr, "XQUERY");
@@
-138,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");
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]);
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;
}
return 0;
}