X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=ircd%2Fircd_relay.c;h=b7a751d7cc4a9446100f904c7c7dd2424867fae3;hb=db5ce1caa14de28c6b333ac3e1484ed068dfd236;hp=5061a4bfefe7e6b31422acf973eca2333edaa59c;hpb=b96a241254a053e44b1d1a4a7c0d7430eda04e74;p=ircu2.10.12-pk.git diff --git a/ircd/ircd_relay.c b/ircd/ircd_relay.c index 5061a4b..b7a751d 100644 --- a/ircd/ircd_relay.c +++ b/ircd/ircd_relay.c @@ -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); }