summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/m_locops.c7
-rw-r--r--modules/m_wallops.c7
2 files changed, 14 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),
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),