Fix revealing of remote users when they send to a channel.
authorMichael Poole <mdpoole@troilus.org>
Tue, 15 Nov 2005 03:36:26 +0000 (03:36 +0000)
committerMichael Poole <mdpoole@troilus.org>
Tue, 15 Nov 2005 03:36:26 +0000 (03:36 +0000)
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1555 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
ircd/channel.c

index 783886b0596d8268549814542804dcae5d15a41e..382132f5262468a54dc6d4956cd881a4d23cca62 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,8 @@
 2005-11-14  Michael Poole <mdpoole@troilus.org>
 
        * ircd/channel.c (member_can_send_to_channel): After prodding from
-       reed, always allow remote users to send to a channel.
+       reed, always allow remote users to send to a channel.  He also
+       pointed out a bug in the first version of this change.
 
 2005-11-14  Carlo Wood <run@alinoe.com>
 
index 6502c49fa23e12957906891e685aea20b62ea748..a93f67606f625f1a9675aba467336cd906db320d 100644 (file)
@@ -679,7 +679,11 @@ int member_can_send_to_channel(struct Membership* member, int reveal)
    * we do not want to send ERR_CANNOTSENDTOCHAN more than once.
    */
   if (!MyUser(member->user))
+  {
+    if (IsDelayedJoin(member) && reveal)
+      RevealDelayedJoin(member);
     return 1;
+  }
 
   /* Discourage using the Apass to get op.  They should use the Upass. */
   if (IsChannelManager(member) && member->channel->mode.apass[0])