2.0/Modules/os set

From AnopeWiki
Revision as of 23:47, 8 May 2014 by Azander (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Language

English

Service OperServ
Module os_set
Author Anope

Description

Syntax: set option setting

Sets various global Services options. Option names currently defined are:

READONLY  
Set read-only or read-write mode
DEBUG  
Activate or deactivate debug mode
NOEXPIRE  
Activate or deactivate no expire mode
SUPERADMIN 
Activate or deactivate super admin mode
LIST  
List the options
  • NOTE: Access to this command requires the permission operserv/set to be present in your opertype.

Commands

SET READONLY {on|off}
Sets read-only mode on or off. In read-only mode, normal users will not be allowed to modify any Services data, including channel and nickname access lists, etc. IRCops with sufficient Services privileges will be able to modify Services' AKILL, SQLINE, SNLINE and ignore lists, drop, suspend or forbid nicknames and channels, and manage news, oper info and DNS, but any such changes will not be saved unless read-only mode is deactivated before Services are terminated or restarted.
This option is equivalent to the command-line option
--readonly.
SET DEBUG {on|off}
Sets debug mode on or off.
This option is equivalent to the command-line option
--debug.
SET NOEXPIRE {on|off}
Sets no expire mode on or off. In no expire mode, nicks, channels, akills and exceptions won't expire until the option is unset.
This option is equivalent to the command-line option
--noexpire.
SET SUPERADMIN {on|off}
Setting this will grant you extra privileges such as the ability to be "founder" on all channel's etc... This option is not persistent, and should only be used when needed, and set back to OFF when no longer needed.
SET LIST
Display the various OperServ settings.

Examples

/msg OperServ SET READONLY Off

/msg OperServ SET NOEXPIRE off

/msg OperServ SET LIST

Default Configuration

/*
 * os_set
 *
 * Provides the command operserv/set.
 *
 * Used to set various settings such as superadmin, debug mode, etc.
 */
module
{
        name = "os_set"
 
        /*
         * If set, Services Admins will be able to use SUPERADMIN [ON|OFF] which will temporarily grant
         * them extra privileges such as being a founder on ALL channels.
         *
         * This directive is optional.
         */
        #superadmin = yes
}
command { service = "OperServ"; name = "SET"; command = "operserv/set"; permission = "operserv/set"; }