X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/333d73ff28ab5ab0193fa60adb39e2215e30074a..c13a2d9ad3893a66b8f782546fdf5b2a9743fd87:/modules/core/m_message.c diff --git a/modules/core/m_message.c b/modules/core/m_message.c index e6fe7ef..96da9d2 100644 --- a/modules/core/m_message.c +++ b/modules/core/m_message.c @@ -972,6 +972,13 @@ handle_special(int p_or_n, const char *command, struct Client *client_p, return; } + if(MyClient(source_p) && !IsOperMassNotice(source_p)) + { + sendto_one(source_p, form_str(ERR_NOPRIVS), + me.name, source_p->name, "mass_notice"); + return; + } + if((s = strrchr(nick, '.')) == NULL) { sendto_one_numeric(source_p, ERR_NOTOPLEVEL,