X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=ircd%2Fircd_relay.c;h=b7a751d7cc4a9446100f904c7c7dd2424867fae3;hb=refs%2Fheads%2Fupstream-ssl;hp=bd4efa5eb3629e598bb297caeb69d36530c22a03;hpb=c8212cc99b4eac35d5dd31131a90f35b409a555a;p=ircu2.10.12-pk.git diff --git a/ircd/ircd_relay.c b/ircd/ircd_relay.c index bd4efa5..b7a751d 100644 --- a/ircd/ircd_relay.c +++ b/ircd/ircd_relay.c @@ -20,7 +20,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* @file +/** @file * @brief Helper functions to relay various types of messages. * @version $Id$ * @@ -52,6 +52,7 @@ #include "ircd.h" #include "ircd_chattr.h" #include "ircd_features.h" +#include "ircd_log.h" #include "ircd_reply.h" #include "ircd_string.h" #include "match.h" @@ -63,7 +64,7 @@ #include "s_user.h" #include "send.h" -#include +/* #include -- Now using assert in ircd_log.h */ #include #include #include @@ -96,7 +97,7 @@ void relay_channel_message(struct Client* sptr, const char* name, const char* te /* * This first: Almost never a server/service */ - if (!client_can_send_to_channel(sptr, chptr, 1)) { + if (!client_can_send_to_channel(sptr, chptr, 0)) { send_reply(sptr, ERR_CANNOTSENDTOCHAN, chptr->chname); return; } @@ -104,6 +105,7 @@ void relay_channel_message(struct Client* sptr, const char* name, const char* te check_target_limit(sptr, chptr, chptr->chname, 0)) return; + RevealDelayedJoinIfNeeded(sptr, chptr); sendcmdto_channel_butone(sptr, CMD_PRIVATE, chptr, cli_from(sptr), SKIP_DEAF | SKIP_BURST, "%H :%s", chptr, text); } @@ -126,13 +128,14 @@ void relay_channel_notice(struct Client* sptr, const char* name, const char* tex /* * This first: Almost never a server/service */ - if (!client_can_send_to_channel(sptr, chptr, 1)) + if (!client_can_send_to_channel(sptr, chptr, 0)) return; if ((chptr->mode.mode & MODE_NOPRIVMSGS) && check_target_limit(sptr, chptr, chptr->chname, 0)) return; + RevealDelayedJoinIfNeeded(sptr, chptr); sendcmdto_channel_butone(sptr, CMD_NOTICE, chptr, cli_from(sptr), SKIP_DEAF | SKIP_BURST, "%H :%s", chptr, text); }