added gnutls backend and moved backend code into new files
[ircu2.10.12-pk.git] / ircd / m_part.c
index 00da1ef64f5d07fbb9d763e92ff2ccda2e385420..bc34ce93572eb3433536ef5fcecb1a61f9a09ae3 100644 (file)
 #include "client.h"
 #include "hash.h"
 #include "ircd.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "numeric.h"
 #include "numnicks.h"
 #include "send.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <string.h>
 
 /*
@@ -200,14 +201,6 @@ int ms_part(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
     if (IsDelayedJoin(member))
       flags |= CHFL_DELAYED;
 
-    /*
-     * XXX BUG: If a client /part's with a part notice, on channels where
-     * he's banned, local clients will not see the part notice, but remote
-     * clients will.
-     */
-    if (!member_can_send_to_channel(member, 0))
-      flags |= CHFL_BANNED;
-
     /* part user from channel */
     joinbuf_join(&parts, chptr, flags);
   }