summaryrefslogtreecommitdiff
path: root/modules/m_wallops.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/m_wallops.c')
-rw-r--r--modules/m_wallops.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/m_wallops.c b/modules/m_wallops.c
index a35a523..1426aa9 100644
--- a/modules/m_wallops.c
+++ b/modules/m_wallops.c
@@ -45,6 +45,13 @@ mo_wallops(struct Client *client_p, struct Client *source_p,
{
const char *message = parv[1];
+ if (!HasOFlag(source_p, OPER_FLAG_WALLOPS))
+ {
+ sendto_one(source_p, form_str(ERR_NOPRIVS),
+ me.name, source_p->name, "wallops");
+ return;
+ }
+
if (EmptyString(message))
{
sendto_one(source_p, form_str(ERR_NEEDMOREPARAMS),