summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-05-14 19:25:54 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-05-14 19:25:54 +0000
commit24716f0fba2a19bf0cae8b368b20e5d08f055868 (patch)
tree282dd26305aaf32f19a83626ac1b11b8f746d606 /modules
parentc4568c811bc77a12e0270ee0a0d0fbebf766c18c (diff)
- Added 'locops' and 'wallops' to irc-operator flags
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2039 82007160-df01-0410-b94d-b575c5fd34c7
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),