##
##  services.conf -- Ratbox IRC Services Configuration
##  (see @l_prefix@/share/ratbox/etc/services.conf.sample for more)
##

serverinfo {
    sid                        = "000";
    name                       = "irc-services.example.com";
    description                = "Example IRC Network Services";
    vhost                      = "127.0.0.1";
    dcc_vhost                  = "127.0.0.1";
    dcc_low_port               = 3000;
    dcc_high_port              = 5000;
    reconnect_time             = 5 minutes;
    ping_time                  = 5 minutes;
    ratbox                     = yes;
    client_flood_max           = 20;
    client_flood_max_ignore    = 30;
    client_flood_ignore_time   = 5 minutes;
    client_flood_time          = 1 minute;
};

admin {
    name                       = "irc-services-admin";
    description                = "Example IRC Services Administrator";
    email                      = "<admin@irc-services.example.com>";
};

database {
    host                       = "127.0.0.1";
    name                       = "ratbox_services";
    username                   = "ratbox_services";
    password                   = "ratbox_services";
};

email {
    disable_email              = yes;
    email_program              = "@l_prefix@/sbin/sendmail", "-t";
    email_name                 = "Ratbox Services";
    email_address              = "ratbox-services@example.com";
    email_number               = 15;
    email_duration             = 1 minute;
};

connect "irc.example.com" {
    vhost                      = "127.0.0.1";
    host                       = "127.0.0.1";
    port                       = 6667;
    password                   = "services-secret";
    autoconn                   = yes;
};

operator "foo" {
    user                       = "*@127.0.0.1";
    user                       = "*@127.0.0.1", "irc.example.com";
    password                   = "bar";
    encrypted                  = no;
    flags                      = admin, dcc, route;
    userserv                   = admin;
    chanserv                   = admin;
    nickserv                   = drop;
    operserv                   = admin;
    operbot                    = channel;
    global                     = netmsg;
    jupeserv                   = jupe;
    banserv                    = kline, xline, resv, perm, remove, sync;
};

service "global" {
    nick                       = "GLOBAL";
    username                   = "global";
    host                       = "irc-services.example.com";
    realname                   = "Global Network Message Service";
    flags                      = opered, msg_self, stealth;
    loglevel                   = 1;
};

service "alis" {
    nick                       = "ALIS";
    username                   = "alis";
    host                       = "irc-services.example.com";
    realname                   = "Advanced List Service";
    flags                      = msg_self;
    loglevel                   = 1;
    max_matches                = 60;
};

service "nickserv" {
    nick                       = "NICKSERV";
    username                   = "nickserv";
    host                       = "irc-services.example.com";
    realname                   = "Nick Registration Services";
    flags                      = opered, msg_self;
    loglevel                   = 5;
    max_nicks                  = 2;
    allow_set_warn             = yes;
    warn_string                = "This nickname is registered, you may be disconnected if a user regains this nickname.";
};

service "userserv" {
    nick                       = "USERSERV";
    username                   = "userserv";
    host                       = "irc-services.example.com";
    realname                   = "User Registration Service";
    flags                      = opered, msg_self;
    loglevel                   = 5;
    disable_register           = no;
    host_register_time         = 1 day;
    host_register_amount       = 2;
    register_time              = 1 minute;
    register_amount            = 10;
    register_email             = no;
    register_url               = "http://irc.example.com/";
    register_verify            = no;
    allow_set_email            = yes;
    allow_set_password         = yes;
    allow_resetpass            = no;
    allow_resetemail           = no;
    expire_time                = 4 weeks;
    expire_suspended_time      = 4 weeks;
    expire_unverified_time     = 1 day;
    expire_bonus               = 1 day;
    expire_bonus_per_time      = 2 weeks;
    expire_bonus_max           = 4 weeks;
    resetpass_duration         = 1 day;
    resetemail_duration        = 1 day;
    reset_regtime_duration     = 2 weeks;
    max_logins                 = 2;
};

service "chanserv" {
    nick                       = "CHANSERV";
    username                   = "chanserv";
    host                       = "irc-services.example.com";
    realname                   = "Channel Registration Service";
    flags                      = opered, msg_self;
    loglevel                   = 6;
    disable_register           = no;
    register_time              = 1 minute;
    register_amount            = 5;
    expire_time                = 4 weeks;
    expire_suspended_time      = 4 weeks;
    expireban_frequency        = 15 minutes;
    enforcetopic_frequency     = 1 hour;
    max_bans                   = 50;
    email_delowner             = no;
    delowner_duration          = 1 day;
    autojoin_empty             = no;
};

service "operserv" {
    nick                       = "OPERSERV";
    username                   = "operserv";
    host                       = "irc-services.example.com";
    realname                   = "Operator Service";
    flags                      = disabled, opered, msg_self, stealth;
    loglevel                   = 1;
    allow_die                  = no;
};

service "operbot" {
    nick                       = "OPERBOT";
    username                   = "operbot";
    host                       = "irc-services.example.com";
    realname                   = "Operator OP/Invite Service";
    flags                      = disabled, opered, msg_self, stealth;
    loglevel                   = 1;
};

service "jupeserv" {
    nick                       = "JUPESERV";
    username                   = "jupeserv";
    host                       = "irc-services.example.com";
    realname                   = "Server Jupe service";
    flags                      = disabled, opered, msg_self, stealth;
    loglevel                   = 3;
    oper_score                 = 3;
    jupe_score                 = 15;
    unjupe_score               = 15;
    pending_time               = 30 minutes;
};

service "banserv" {
    nick                       = "BANSERV";
    username                   = "banserv";
    host                       = "irc-services.example.com";
    realname                   = "Ban Service";
    flags                      = disabled, opered, msg_self, stealth;
    loglevel                   = 1;
    unban_time                 = 2 weeks;
    autosync_frequency         = 2 weeks;
    temp_workaround            = no;
};

service "watchserv" {
    nick                       = "WATCHSERV";
    username                   = "watchserv";
    host                       = "irc-services.example.com";
    realname                   = "Command Watching Service";
    flags                      = msg_self, stealth;
    loglevel                   = 1;
};

