X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=ircd%2Fm_wallchops.c;h=c57535114656b2d0a85673166cfc83d809a7d536;hb=db5ce1caa14de28c6b333ac3e1484ed068dfd236;hp=a3a91339eaddc343b5044c04a09c3ac23fb71d6e;hpb=fc21303989a07d6091ef684150db29c49f682614;p=ircu2.10.12-pk.git diff --git a/ircd/m_wallchops.c b/ircd/m_wallchops.c index a3a9133..c575351 100644 --- a/ircd/m_wallchops.c +++ b/ircd/m_wallchops.c @@ -119,6 +119,7 @@ int m_wallchops(struct Client* cptr, struct Client* sptr, int parc, char* parv[] if ((chptr->mode.mode & MODE_NOPRIVMSGS) && check_target_limit(sptr, chptr, chptr->chname, 0)) return 0; + RevealDelayedJoinIfNeeded(sptr, chptr); sendcmdto_channel_butone(sptr, CMD_WALLCHOPS, chptr, cptr, SKIP_DEAF | SKIP_BURST | SKIP_NONOPS, "%H :@ %s", chptr, parv[parc - 1]); @@ -145,7 +146,7 @@ int ms_wallchops(struct Client* cptr, struct Client* sptr, int parc, char* parv[ return 0; if (!IsLocalChannel(parv[1]) && (chptr = FindChannel(parv[1]))) { - if (client_can_send_to_channel(sptr, chptr, 0)) { + if (client_can_send_to_channel(sptr, chptr, 1)) { sendcmdto_channel_butone(sptr, CMD_WALLCHOPS, chptr, cptr, SKIP_DEAF | SKIP_BURST | SKIP_NONOPS, "%H :%s", chptr, parv[parc - 1]);