Fix revealing of remote users when they send to a channel.
[ircu2.10.12-pk.git] / ircd / channel.c
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])