X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=ircd%2Fm_wallvoices.c;h=a0dcd0e65d8feb2fd5379f54acffbb719d1fac41;hb=refs%2Fheads%2Fupstream-ssl;hp=4dfad262dc6cd4500e21b708e7b54173b7460717;hpb=4eb71fdb80b33555029bc910402b701aed3e776b;p=ircu2.10.12-pk.git diff --git a/ircd/m_wallvoices.c b/ircd/m_wallvoices.c index 4dfad26..a0dcd0e 100644 --- a/ircd/m_wallvoices.c +++ b/ircd/m_wallvoices.c @@ -84,6 +84,7 @@ #include "client.h" #include "hash.h" #include "ircd.h" +#include "ircd_log.h" #include "ircd_reply.h" #include "ircd_string.h" #include "msg.h" @@ -92,7 +93,7 @@ #include "s_user.h" #include "send.h" -#include +/* #include -- Now using assert in ircd_log.h */ /* * m_wallvoices - local generic message handler @@ -117,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]); @@ -143,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]);