Fix the build for the new xquery files.
authorMichael Poole <mdpoole@troilus.org>
Sun, 3 Jan 2010 19:42:24 +0000 (19:42 +0000)
committerMichael Poole <mdpoole@troilus.org>
Sun, 3 Jan 2010 19:42:24 +0000 (19:42 +0000)
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1926 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
ircd/Makefile.in
ircd/m_xquery.c
ircd/m_xreply.c

index 613e88eb82c863d0a518707aadcc4009869eed8e..4fa0b8bdb779589f6b6568593139940c63c8bff0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2010-01-03  Michael Poole <mdpoole@troilus.org>
+
+       * ircd/Makefile.in (IRCD_SRC): Add m_xquery.c and m_xreply.c to
+       the build.
+
+       * ircd/m_xquery.c: Add missing include.
+       (mo_xquery): Fix spelling of struct Client.
+       (ms_xquery): Likewise.
+
+       * ircd/m_xreply.c: Add missing includes.
+       (ms_xreply): Fix spelling of struct Client and findNUser().
+
 2010-01-01  Kevin L. Mitchell  <klmitch@mit.edu>
 
        * doc/readme.xquery: documentation for design and use of the
index 3b01d2d84cb291fd8bc25351f055f940d2518ad2..f7dd61030acd10e4818805eed7309c5af4488249 100644 (file)
@@ -186,6 +186,8 @@ IRCD_SRC = \
        m_who.c \
        m_whois.c \
        m_whowas.c \
+       m_xreply.c \
+       m_xquery.c \
        match.c \
        memdebug.c \
        motd.c \
index 49d7e7ebdec51404d496febfb6da4085c6b21f00..c1cc4ec608ecb2c7ffb5656ef1525b0485f5e036 100644 (file)
@@ -83,6 +83,7 @@
 #include "client.h"
 #include "ircd.h"
 #include "ircd_log.h"
+#include "ircd_reply.h"
 #include "ircd_string.h"
 #include "msg.h"
 #include "numeric.h"
  */
 int mo_xquery(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
 {
-  struct client* acptr;
+  struct Client* acptr;
 
   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[])
 {
-  struct client* acptr;
+  struct Client* acptr;
 
   if (parc < 4) /* have enough parameters? */
     return need_more_params(sptr, "XQUERY");
index d43c9fe0f5eb31b7d4689f3fa72efe46cf4c8d36..2c81956cd404ea7afcb05e749a858f4a2a995ab9 100644 (file)
 #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 "numnicks.h"
 #include "s_auth.h"
 #include "send.h"
 
  */
 int ms_xreply(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
 {
-  struct client* acptr;
+  struct Client* acptr;
   const char* routing;
   const char* reply;
 
@@ -112,7 +114,7 @@ int ms_xreply(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
   reply = parv[3];
 
   /* Look up the target */
-  if (!(acptr = FindNServer(parv[1])) && !(acptr = FindNUser(parv[1])))
+  if (!(acptr = FindNServer(parv[1])) && !(acptr = findNUser(parv[1])))
     return send_reply(sptr, SND_EXPLICIT | ERR_NOSUCHSERVER,
                      "* :Server has disconnected");