Author: Isomer <isomer@coders.net>
[ircu2.10.12-pk.git] / ircd / ircd_reply.c
index 043da3cfc1494820c65d7de37089690f4123befd..9020eaa75abd01be3a2a304481bc198b67e26e30 100644 (file)
@@ -32,6 +32,7 @@
 #include "send.h"
 
 #include <assert.h>
+#include <string.h>
 
 int need_more_params(struct Client* cptr, const char* cmd)
 {
@@ -101,11 +102,11 @@ int send_reply(struct Client *to, int reply, ...)
   assert(0 != to);
   assert(0 != reply);
 
-  num = get_error_numeric(reply & ~RPL_EXPLICIT); /* get reply... */
+  num = get_error_numeric(reply & ~SND_EXPLICIT); /* get reply... */
 
   va_start(vd.vd_args, reply);
 
-  if (reply & RPL_EXPLICIT) /* get right pattern */
+  if (reply & SND_EXPLICIT) /* get right pattern */
     vd.vd_format = (const char *) va_arg(vd.vd_args, char *);
   else
     vd.vd_format = num->format;