X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=ircd%2Fm_wallvoices.c;h=a0dcd0e65d8feb2fd5379f54acffbb719d1fac41;hb=1570a04e15bec6b2945e4351b1e05211aecdcacc;hp=2fdc5f3fdef3b353dcc311259e7d38ea1a5e0c88;hpb=fc21303989a07d6091ef684150db29c49f682614;p=ircu2.10.12-pk.git diff --git a/ircd/m_wallvoices.c b/ircd/m_wallvoices.c index 2fdc5f3..a0dcd0e 100644 --- a/ircd/m_wallvoices.c +++ b/ircd/m_wallvoices.c @@ -118,6 +118,7 @@ int m_wallvoices(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_WALLVOICES, chptr, cptr, SKIP_DEAF | SKIP_BURST | SKIP_NONVOICES, "%H :+ %s", chptr, parv[parc - 1]); @@ -144,7 +145,7 @@ int ms_wallvoices(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_WALLVOICES, chptr, cptr, SKIP_DEAF | SKIP_BURST | SKIP_NONVOICES, "%H :%s", chptr, parv[parc - 1]);