2.0/Modules/cs log

From AnopeWiki
Jump to: navigation, search
Language

English

Service ChanServ
Module cs_log
Author Anope

Description

The LOG command allows users to configure logging settings for their channel. If no parameters are given this command lists the current logging methods in place for this channel.

Otherwise, command must be a command name, and method is one of the following logging methods:

MESSAGE [status], NOTICE [status], MEMO

Which are used to message, notice, and memo the channel respectively. With MESSAGE or NOTICE you must have a service bot assigned to and joined to your channel. Status may be a channel status such as @ or +.

To remove a logging method use the same syntax as you would to add it.

Commands

log channel
log channel command method [status]

Examples

/msg ChanServ LOG

/msg ChanServ LOG #myChannel chanserv/access NOTICE @%~+

Default Configuration

/*
 * cs_log
 *
 * Provides the command chanserv/log.
 *
 * Use for configuring what actions on channels are logged and where.
 */
module
{
        name = "cs_log"
 
        /* Default log settings for newly registered channels */
 
        #default
        {
                command = "chanserv/modes"
                method = "MESSAGE @"
        }
 
        #default
        {
                service = "ChanServ"
                command = "ACCESS"
                method = "MESSAGE @"
        }
 
        #default
        {
                command = "chanserv/xop"
                method = "MESSAGE @"
        }
 
        #default
        {
                service = "ChanServ"
                command = "FLAGS"
                method = "MESSAGE @"
        }
}
command { service = "ChanServ"; name = "LOG"; command = "chanserv/log"; group = "chanserv/management"; }