added gnutls backend and moved backend code into new files
[ircu2.10.12-pk.git] / ircd / m_notice.c
index b195172d993decdd3cebac7e2027b589092b853d..6f2d295f37ab1616f4053ee9a296d5f870ed9145 100644 (file)
@@ -83,6 +83,7 @@
 
 #include "client.h"
 #include "ircd_chattr.h"
+#include "ircd_log.h"
 #include "ircd_relay.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
@@ -91,7 +92,7 @@
 #include "numeric.h"
 #include "send.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <string.h>
 
 #if !defined(XXX_BOGUS_TEMP_HACK)
@@ -112,7 +113,7 @@ int m_notice(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
   assert(0 != cptr);
   assert(cptr == sptr);
 
-  cli_flags(sptr) &= ~FLAGS_TS8;
+  ClrFlag(sptr, FLAG_TS8);
 
   if (parc < 2 || EmptyString(parv[1]))
     return send_reply(sptr, ERR_NORECIPIENT, MSG_NOTICE);
@@ -148,14 +149,14 @@ int m_notice(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
 }
 
 /*
- * ms_notice - server message handler template
+ * ms_notice - server message handler
  */
 int ms_notice(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
 {
   char* name;
   char* server;
 
-  cli_flags(sptr) &= ~FLAGS_TS8;
+  ClrFlag(sptr, FLAG_TS8);
 
   if (parc < 3) {
     /*
@@ -202,7 +203,7 @@ int mo_notice(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
   assert(0 != cptr);
   assert(cptr == sptr);
 
-  cli_flags(sptr) &= ~FLAGS_TS8;
+  ClrFlag(sptr, FLAG_TS8);
 
   if (parc < 2 || EmptyString(parv[1]))
     return send_reply(sptr, ERR_NORECIPIENT, MSG_NOTICE);