Remove redundant check for being banned in ms_part().
authorMichael Poole <mdpoole@troilus.org>
Wed, 30 Mar 2005 04:01:17 +0000 (04:01 +0000)
committerMichael Poole <mdpoole@troilus.org>
Wed, 30 Mar 2005 04:01:17 +0000 (04:01 +0000)
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@1344 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
ircd/m_part.c

index 08001ccf914f2e3acb78e0bbfd0c5d847ae03cc5..5e5c0349b0c7d3020a8e8ebce50e4f16048c62fb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-03-29  Michael Poole <mdpoole@troilus.org>
+       (The previously unapplied part of another patch (by Carlo Wood?).)
+
+       * ircd/m_part.c (ms_part): Remove a check that should already be
+       done by the user's own server.
+
 2005-03-29  Michael Poole <mdpoole@troilus.org>
 
        * doc/example.conf: Add HIS_STATS_J entry.
index fd90fbbec6bc6b2249930ef3954054b7d587b0af..bc34ce93572eb3433536ef5fcecb1a61f9a09ae3 100644 (file)
@@ -201,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);
   }