diff options
author | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-05-14 19:25:54 +0000 |
---|---|---|
committer | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-05-14 19:25:54 +0000 |
commit | 24716f0fba2a19bf0cae8b368b20e5d08f055868 (patch) | |
tree | 282dd26305aaf32f19a83626ac1b11b8f746d606 /modules | |
parent | c4568c811bc77a12e0270ee0a0d0fbebf766c18c (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.c | 7 | ||||
-rw-r--r-- | modules/m_wallops.c | 7 |
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), |