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