2016-06-21 19:56:53 +02:00
|
|
|
# This is a sample configuration file for PyLink. You'll likely want to rename it to pylink.yml
|
2015-07-22 20:46:38 +02:00
|
|
|
# and begin your configuration there.
|
|
|
|
|
|
|
|
# Note: lines starting with a "#" are comments and will be ignored.
|
2016-04-03 07:26:20 +02:00
|
|
|
# Note 2: Use SPACES, NOT tabs to indent, or you will get parser errors on start!
|
2015-07-22 20:46:38 +02:00
|
|
|
|
2017-03-11 08:21:17 +01:00
|
|
|
# Defines general settings for the PyLink server. Prior to PyLink 1.2, this configuration block
|
|
|
|
# was named "bot:".
|
|
|
|
pylink:
|
2015-07-18 08:44:52 +02:00
|
|
|
# Sets nick, user/ident, and real name.
|
2016-07-03 07:18:10 +02:00
|
|
|
nick: PyLink
|
2016-06-11 19:36:01 +02:00
|
|
|
ident: pylink
|
2015-07-07 21:03:30 +02:00
|
|
|
realname: PyLink Service Client
|
2015-08-25 03:14:35 +02:00
|
|
|
|
|
|
|
# Server description (shown in /links, /whois, etc.)
|
|
|
|
serverdesc: PyLink Server
|
|
|
|
|
2017-03-11 08:42:45 +01:00
|
|
|
# Sets the fantasy command prefix for the main PyLink bot. To configure fantasy prefixes for
|
|
|
|
# other service bots, add or modify the "prefix:" option in the configuration section of each
|
2017-07-12 17:37:08 +02:00
|
|
|
# plugin. (see the "games:" block for an example)
|
2017-03-11 08:42:45 +01:00
|
|
|
# Note: prior to PyLink 1.2, defining a prefix here made it global for all service bots. This
|
|
|
|
# was removed because it called all bots in a channel at once (even if they have conflicting
|
2017-07-12 17:37:08 +02:00
|
|
|
# commands), which usually leads to one successful reply and a string of "Command not found"
|
2017-03-11 08:42:45 +01:00
|
|
|
# errors.
|
2017-07-12 17:37:08 +02:00
|
|
|
# Note 2: this option REPLACES the deprecated "prefixes:" option from PyLink 1.1 and earlier.
|
2016-05-15 20:45:32 +02:00
|
|
|
prefix: "&"
|
2015-09-26 18:38:50 +02:00
|
|
|
|
2017-03-26 23:03:31 +02:00
|
|
|
# Determines whether PyLink service bots will respond to commands prefixed with their nick
|
|
|
|
# (requires the fantasy plugin). Prior to PyLink 1.2, this option was named "respondtonick";
|
|
|
|
# it was renamed for consistency. This defaults to false.
|
|
|
|
#respond_to_nick: true
|
2015-11-29 05:46:53 +01:00
|
|
|
|
2016-07-02 06:25:58 +02:00
|
|
|
# Determines whether PyLink service clients should protect themselves from
|
|
|
|
# kicks, kills, etc. using IRCd-side servprotect modes. For this to work
|
2016-11-05 02:13:15 +01:00
|
|
|
# properly, this usually requires that PyLink be U-Lined. This defaults to
|
2016-07-02 06:25:58 +02:00
|
|
|
# False.
|
2017-07-12 17:33:28 +02:00
|
|
|
#protect_services: false
|
2016-07-02 06:25:58 +02:00
|
|
|
|
2017-02-17 02:41:07 +01:00
|
|
|
# Determines whether services should default to sending command responses as private notices,
|
|
|
|
# even if the command was called in a channel. This defaults to False.
|
|
|
|
#prefer_private_replies: false
|
|
|
|
|
2017-02-18 21:54:26 +01:00
|
|
|
# Determines whether spawning additional services for bots (e.g. Automode, Games) should be
|
|
|
|
# enabled. This defaults to True, unless a network's protocol module doesn't support spawning
|
2018-07-02 09:35:55 +02:00
|
|
|
# extra service bots. If this is set to false, the other plugins' commands and channels will
|
|
|
|
# be merged into that of the main PyLink service bot.
|
2017-02-18 21:54:26 +01:00
|
|
|
#spawn_services: true
|
|
|
|
|
2018-10-20 21:30:19 +02:00
|
|
|
# Determines the default ban style that PyLink should use for setting bans (e.g. in Antispam)
|
|
|
|
# $ident, $host, $realhost, $ip, and $nick are among the supported substitutions here.
|
|
|
|
# This defaults to "*!*@$host" if not set.
|
|
|
|
# You should take extra caution that 1) the resulting mask is a valid nick!user@host
|
|
|
|
# 2) generated bans actually match the target user
|
|
|
|
#ban_style: "*!*@$host"
|
|
|
|
#ban_style: "*!$ident@$host" # A possible alternative
|
|
|
|
|
2017-03-09 07:30:32 +01:00
|
|
|
# Defines extra directories to look up plugins and protocol modules in.
|
|
|
|
# Environment variables (e.g. $HOME) and home folders (~) are expanded here, in that order.
|
|
|
|
#plugin_dirs: ["~/my-plugins", "~/pylink-contrib-modules/plugins"]
|
|
|
|
#protocol_dirs: ["~/pylink-contrib-modules/protocols"]
|
|
|
|
|
2018-10-29 05:13:29 +01:00
|
|
|
# Determines whether service bots should return unknown command errors. Defaults to true if not
|
|
|
|
# speciifed.
|
2017-03-29 07:18:51 +02:00
|
|
|
#show_unknown_commands: true
|
|
|
|
|
2017-07-12 17:37:08 +02:00
|
|
|
# Determines whether hideoper modes should be respected in WHOIS replies.
|
|
|
|
# Defaults to true if not specified.
|
|
|
|
#whois_use_hideoper: true
|
|
|
|
|
|
|
|
# Determines whether extended WHOIS replies should be sent to users marked as a
|
|
|
|
# bot (usually with umode +B). For better security (i.e. with bots that track services
|
|
|
|
# accounts for authentication), it is recommended to leave this off.
|
|
|
|
#whois_show_extensions_to_bots: false
|
|
|
|
|
|
|
|
# Determines whether PyLink should return its time of initial connection when replying to WHOIS
|
|
|
|
# for service bots. This defaults to true if not set.
|
|
|
|
#whois_show_startup_time: true
|
|
|
|
|
|
|
|
# Determines how long plugins should wait (in seconds) before flushing their
|
|
|
|
# databases to disk. Defaults to 300 seconds. Changes here require a reload
|
|
|
|
# of all database-enabled plugins to take effect.
|
|
|
|
#save_delay: 300
|
|
|
|
|
2018-10-28 02:48:12 +01:00
|
|
|
# Determines whether that service bots should join preconfigured channels even if they are empty.
|
|
|
|
# This can also be overriden per-network via the "join_empty_channels" variable.
|
|
|
|
# This defaults to False if not set.
|
|
|
|
#join_empty_channels: false
|
|
|
|
|
2015-03-19 20:55:18 +01:00
|
|
|
login:
|
2016-12-17 03:40:27 +01:00
|
|
|
# NOTE: for users migrating from PyLink < 1.1, the old login:user/login:password settings
|
|
|
|
# have been deprecated. We strongly recommend migrating to the new "accounts:" block below, as
|
|
|
|
# it supports multiple accounts, hashed passwords, and allows more flexibility (accounts no
|
2017-02-20 06:40:00 +01:00
|
|
|
# longer imply admin access).
|
|
|
|
|
|
|
|
# IMPORTANT: If you're switching from login:user/login:password, you MUST ADD YOURSELF to a
|
|
|
|
# "permissions:" block like the one below, or you will lose IRC administration access to your
|
|
|
|
# PyLink daemon!
|
2016-11-08 06:01:28 +01:00
|
|
|
accounts:
|
2016-12-17 03:40:27 +01:00
|
|
|
# Creates an account with username "user1". You can define other usernames at the
|
|
|
|
# same level here (key name is user name).
|
2016-11-08 06:01:28 +01:00
|
|
|
user1:
|
2016-11-20 02:16:04 +01:00
|
|
|
# Defines the password for the user. You can encrypt passwords using the
|
|
|
|
# 'mkpasswd' command or the 'pylink-mkpasswd' utility included with PyLink.
|
2016-11-20 02:47:55 +01:00
|
|
|
password: "$6$rounds=81447$WlVlZYCgbnjPmVqy$28Tu/Zl0xNpePqimax2wABKn5GCoWomYEI1Pu5jqYyQNULazR4BxQmscZ0MgBHqBCCke.3u5eOtBSZwL3WwVf0"
|
2016-11-08 06:01:28 +01:00
|
|
|
|
2017-04-29 09:08:07 +02:00
|
|
|
# Determines whether the password given is encrypted. Defaults to false
|
2016-11-20 02:16:04 +01:00
|
|
|
# (plain text) for backwards compatibility.
|
|
|
|
encrypted: true
|
2015-03-19 20:55:18 +01:00
|
|
|
|
2017-08-08 01:16:17 +02:00
|
|
|
# Optional: allows limiting this login to users from certain networks only (case sensitive).
|
|
|
|
#networks: ["network1", "network2"]
|
|
|
|
|
2017-08-08 06:44:15 +02:00
|
|
|
# Optional: allows limiting this login to opered users
|
|
|
|
#require_oper: false
|
|
|
|
|
|
|
|
# Optional: requires the user to match any of the following hosts. Extended targets
|
|
|
|
# are supported here as well.
|
|
|
|
#hosts: ["*!*@localhost", "*!*@trusted.isp"]
|
|
|
|
|
2019-06-07 23:10:42 +02:00
|
|
|
# For ADVANCED users: adjusts settings for PyLink's default passlib CryptContext.
|
2019-06-16 20:39:07 +02:00
|
|
|
# As of PyLink 2.0.3, the default is to use pbkdf2_sha256 for new hashes, while also allowing verifying
|
|
|
|
# sha512_crypt for compatibility with PyLink < 2.0.3.
|
2019-06-07 23:10:42 +02:00
|
|
|
# This is configured as a dict of settings, which will be passed into the CryptContext constructor.
|
|
|
|
# See https://passlib.readthedocs.io/en/stable/lib/passlib.context.html for a list of valid options.
|
|
|
|
# Changes to this setting require a rehash to apply.
|
|
|
|
#cryptcontext_settings:
|
|
|
|
#schemes: ["pbkdf2_sha256", "sha512_crypt"]
|
|
|
|
|
2016-12-10 05:57:24 +01:00
|
|
|
permissions:
|
2018-07-15 06:02:14 +02:00
|
|
|
# Permissions blocks in PyLink are define as a mapping of PyLink targets (i.e. hostmasks or
|
|
|
|
# exttargets) to lists of permission nodes. You can find a list of permissions that PyLink and
|
2018-07-15 06:06:56 +02:00
|
|
|
# its plugins define in docs/permissions-reference.md. Exttargets (extended targets) are
|
|
|
|
# documented further in docs/exttargets.md
|
2018-07-15 06:02:14 +02:00
|
|
|
|
|
|
|
# Permissions blocks look something like this:
|
|
|
|
#"*!user@host":
|
|
|
|
# - "permission.node.1"
|
|
|
|
# - "permission.node.2"
|
|
|
|
# - "someplugin.*" # Wildcards are also supported in names
|
2016-12-10 05:57:24 +01:00
|
|
|
|
2018-07-15 06:06:56 +02:00
|
|
|
# Replace ABC123 with your PyLink account name (configured above in order to give yourself admin
|
|
|
|
# access. As of PyLink 2.0, specifying a bare account name is synonymous with
|
|
|
|
# "$pylinkirc:<accountname>" (i.e. the "$pylinkirc:" prefix is implied).
|
2017-08-08 01:31:17 +02:00
|
|
|
"ABC123":
|
2016-12-10 05:57:24 +01:00
|
|
|
- "*"
|
|
|
|
|
2018-07-15 06:02:14 +02:00
|
|
|
# This option determines whether plugin-determined default permissions should be enabled.
|
|
|
|
# You should generally only disable this if you need to configure permissions in a specific way,
|
|
|
|
# because it WILL break features people expect to work (e.g. access to Relay commands) unless you
|
|
|
|
# configure that in.
|
|
|
|
# See docs/permissions-reference.md for a list of permissions defined by PyLink's stock plugins.
|
|
|
|
# This defaults to true if not set.
|
|
|
|
#permissions_merge_defaults: true
|
|
|
|
|
2015-07-10 23:17:43 +02:00
|
|
|
servers:
|
2016-06-05 03:39:18 +02:00
|
|
|
# Please note: these are only EXAMPLE link blocks. You should edit them and
|
|
|
|
# remove ones that you don't need in your config.
|
2016-06-11 19:44:14 +02:00
|
|
|
|
2016-06-05 05:31:25 +02:00
|
|
|
# Short name for the network. This is used for relay's nick suffixes, the
|
2017-01-02 21:30:38 +01:00
|
|
|
# network plugin's (dis)connect commands, and various other places internally.
|
|
|
|
# CHANGE THIS to some abbreviation representing your network; usually
|
|
|
|
# something 3-5 characters should be good.
|
2015-12-22 19:31:56 +01:00
|
|
|
inspnet:
|
2016-06-11 20:29:11 +02:00
|
|
|
# Server IP, port, and passwords. The ip: field also supports resolving
|
2016-08-10 20:28:35 +02:00
|
|
|
# hostnames.
|
2015-07-10 23:17:43 +02:00
|
|
|
ip: 127.0.0.1
|
|
|
|
port: 7000
|
|
|
|
recvpass: "abcd"
|
|
|
|
sendpass: "abcd"
|
2015-07-12 05:09:36 +02:00
|
|
|
|
2017-01-02 21:30:24 +01:00
|
|
|
# Set the bind host, useful for multi-homed hosts.
|
|
|
|
#bindhost: 1.2.3.4
|
|
|
|
|
2015-09-20 20:55:51 +02:00
|
|
|
# The full network name, used by plugins.
|
2018-02-21 08:41:31 +01:00
|
|
|
netname: "Change this"
|
2015-09-20 20:55:51 +02:00
|
|
|
|
2015-07-10 23:17:43 +02:00
|
|
|
# Hostname we will use to connect to the remote server
|
2015-12-22 19:31:56 +01:00
|
|
|
hostname: "pylink.yournet.local"
|
2017-08-02 16:02:23 +02:00
|
|
|
|
2019-06-01 03:43:53 +02:00
|
|
|
# Sets the server ID (SID) that the main PyLink server should use. For TS6-like servers
|
|
|
|
# (InspIRCd, Charybdis, UnrealIRCd, etc.), this must be three characters:
|
|
|
|
# the first char must be a digit [0-9], and the remaining two may be either uppercase
|
|
|
|
# letters [A-Z] or digits.
|
2016-08-03 06:10:10 +02:00
|
|
|
sid: "0PY"
|
2015-07-12 05:09:36 +02:00
|
|
|
|
2019-06-01 03:43:53 +02:00
|
|
|
# Server ID range: this specifies the range of server IDs that PyLink# may use for
|
|
|
|
# subservers such as Relay. On TS6, this should be a combination of digits, letters, and #'s.
|
|
|
|
# Each # denotes a range (0-9A-Z) of characters that can be used by PyLink to generate SIDs.
|
2017-10-12 02:59:16 +02:00
|
|
|
# You will want to make sure no other servers are using this range.
|
2016-11-05 02:13:15 +01:00
|
|
|
# There must be at least one # in this entry.
|
2015-08-24 06:15:49 +02:00
|
|
|
sidrange: "8##"
|
|
|
|
|
2019-06-01 03:43:53 +02:00
|
|
|
# Sets the protocol module to use for this network - see the README for a list of supported
|
|
|
|
# IRCds.
|
2015-07-10 23:17:43 +02:00
|
|
|
protocol: "inspircd"
|
2015-04-25 07:37:07 +02:00
|
|
|
|
2019-06-07 08:49:27 +02:00
|
|
|
# InspIRCd specific option: sets the target InspIRCd protocol version.
|
|
|
|
# Valid values include:
|
|
|
|
# "insp20" - InspIRCd 2.0.x (1202) [DEFAULT†]
|
|
|
|
# "insp3" - InspIRCd 3.x (1205) [BETA]
|
|
|
|
#target_version: insp20
|
|
|
|
#target_version: insp3
|
|
|
|
# † InspIRCd 2.0 servers can link to InspIRCd 3.0 via built-in link compatibility, but some
|
|
|
|
# new features may not work correctly.
|
|
|
|
|
2019-06-01 03:43:53 +02:00
|
|
|
# Sets the max nick length for the network. It is important that this is set correctly, or
|
|
|
|
# PyLink might introduce a nick that is too long and cause netsplits!
|
|
|
|
# This defaults to 30 if not set.
|
2015-08-04 04:42:26 +02:00
|
|
|
maxnicklen: 30
|
|
|
|
|
2019-06-07 08:56:37 +02:00
|
|
|
# Toggles TLS/SSL for this network - you should seriously consider using TLS in all server links
|
2018-06-16 00:43:20 +02:00
|
|
|
# for optimal security. Defaults to False if not specified.
|
|
|
|
ssl: true
|
2015-08-12 11:00:43 +02:00
|
|
|
|
2019-06-07 08:56:37 +02:00
|
|
|
# Optional TLS cert/key to pass to the uplink server.
|
2016-01-31 08:37:01 +01:00
|
|
|
#ssl_certfile: pylink-cert.pem
|
|
|
|
#ssl_keyfile: pylink-key.pem
|
2015-08-11 05:24:55 +02:00
|
|
|
|
2019-06-07 08:56:37 +02:00
|
|
|
# New in PyLink 2.0: Determines whether the target server's TLS certificate hostnames should be
|
2018-06-16 00:27:42 +02:00
|
|
|
# checked against the hostname we're set to connect to. This defaults to true for Clientbot
|
|
|
|
# networks and others linked to via a hostname. It depends on ssl_accept_invalid_certs being
|
|
|
|
# *disabled* to take effect.
|
|
|
|
#ssl_validate_hostname: true
|
|
|
|
|
2019-06-07 08:56:37 +02:00
|
|
|
# New in PyLink 2.0: When enabled, this disables TLS certificate validation on the target network.
|
2018-06-16 00:27:42 +02:00
|
|
|
# This defaults to false (bad certs are rejected) on Clientbot and true for server protocols
|
2019-06-07 08:56:37 +02:00
|
|
|
# (where bad certs are accepted). This disables the ssl_validate_hostname option, forcing it to
|
|
|
|
# be false.
|
2018-06-16 00:27:42 +02:00
|
|
|
#ssl_accept_invalid_certs: false
|
|
|
|
|
2019-06-07 08:56:37 +02:00
|
|
|
# Optionally, you can set this option to verify the TLS certificate fingerprint of your
|
|
|
|
# uplink. This check works independently of ssl_validate_hostname and ssl_accept_invalid_certs.
|
2016-01-31 08:04:13 +01:00
|
|
|
#ssl_fingerprint: "e0fee1adf795c84eec4735f039503eb18d9c35cc"
|
|
|
|
|
2019-06-07 08:56:37 +02:00
|
|
|
# This sets the hash type for the above TLS certificate fingerprint.
|
|
|
|
# Valid values include md5 and sha1-sha512, and others that may be supported depending on
|
2019-06-01 03:43:53 +02:00
|
|
|
# your system: see https://docs.python.org/3/library/hashlib.html
|
|
|
|
# This defaults to sha256 if not set.
|
2016-01-31 08:04:13 +01:00
|
|
|
#ssl_fingerprint_type: sha256
|
2015-08-12 11:00:43 +02:00
|
|
|
|
2019-06-01 03:43:53 +02:00
|
|
|
# Sets autoconnect delay - comment this out or set the value below 1 to disable autoconnect
|
|
|
|
# entirely.
|
2018-06-16 00:41:20 +02:00
|
|
|
autoconnect: 10
|
|
|
|
|
|
|
|
# Optional autoconnect settings:
|
|
|
|
# Defines whether we should multiply the autoconnect delay by a certain value every time
|
|
|
|
# a connection fails. This defaults to 2 if not set (30 secs becomes 60 secs, 120 secs, etc.)
|
|
|
|
#autoconnect_multiplier: 2
|
|
|
|
# Defines what the maximum autoconnect time will be (defaults to 1800 secs).
|
|
|
|
#autoconnect_max: 1800
|
|
|
|
|
|
|
|
# Autojoin channels. The "channels" option affects all service bots, but you can also
|
|
|
|
# configure channels per service using keys in the name of "<servicename>_channels"
|
|
|
|
# Comment out or remove these keys if you don't want service bots# to join any channels by
|
|
|
|
# default.
|
|
|
|
#channels: ["#pylink"]
|
|
|
|
#pylink_channels: ["#services"]
|
|
|
|
#automode_channels: ["#chat"]
|
|
|
|
|
2017-05-27 10:27:09 +02:00
|
|
|
# Encoding: allows you to override the network's encoding. This can be useful for networks
|
|
|
|
# using m_nationalchars or something similar. Encoding defaults to utf-8 if not set, and
|
|
|
|
# should be one of the standard encodings defined at
|
|
|
|
# https://docs.python.org/3/library/codecs.html#standard-encodings
|
2017-06-02 16:30:20 +02:00
|
|
|
# Changing this setting requires a disconnect and reconnect of the corresponding network
|
|
|
|
# to apply.
|
|
|
|
# This setting is EXPERIMENTAL as of PyLink 1.2.x.
|
2017-05-27 10:27:09 +02:00
|
|
|
#encoding: utf-8
|
|
|
|
|
2019-06-01 03:43:53 +02:00
|
|
|
# Sets the ping frequency in seconds (i.e. how long we should wait between sending pings to
|
|
|
|
# our uplink). When more than two consecutive pings are missed, PyLink will disconnect with
|
|
|
|
# a ping timeout. This defaults to 90 if not set.
|
2018-06-16 00:41:20 +02:00
|
|
|
#pingfreq: 90
|
|
|
|
|
2017-12-30 10:33:14 +01:00
|
|
|
# If relay nick tagging is disabled, this option specifies a list of nick globs to always
|
|
|
|
# tag when introducing remote users *onto* this network.
|
2017-12-30 10:22:24 +01:00
|
|
|
#relay_forcetag_nicks: ["someuser", "Guest*"]
|
|
|
|
|
2019-06-01 03:43:53 +02:00
|
|
|
# Sets the suffix that relay subservers on this network should use. If not specified per
|
|
|
|
# network, this falls back to the value at relay::server_suffix, or the string "relay" if
|
|
|
|
# that is also not set.
|
2018-04-04 02:41:22 +02:00
|
|
|
#relay_server_suffix: "relay.yournet.net"
|
2017-08-02 16:02:23 +02:00
|
|
|
|
2017-08-02 15:57:48 +02:00
|
|
|
# Determines whether relay will tag nicks on this network. This overrides the relay::tag_nicks
|
|
|
|
# option on a per network-basis.
|
|
|
|
#relay_tag_nicks: true
|
|
|
|
|
2017-08-02 16:02:23 +02:00
|
|
|
# Determines the maximum size of the network's outgoing data queue (sendq), in message lines.
|
|
|
|
# This defaults to 4096 if not set.
|
|
|
|
#maxsendq: 4096
|
|
|
|
|
2017-08-11 22:15:03 +02:00
|
|
|
# Defines a list of "U-lined" servers that should be given special treatment when overriding
|
|
|
|
# modes. Relay uses this as a list of servers to IGNORE some mode changes from on a claimed
|
|
|
|
# channel (versus bouncing the mode back, which may be floody).
|
|
|
|
#ulines: ["services.example.conf"]
|
|
|
|
|
2017-07-12 17:28:32 +02:00
|
|
|
# InspIRCd specific option: determines whether we should display WHOIS extensions by overriding
|
|
|
|
# InspIRCd's default WHOIS formatting. This defaults to true for consistency with PyLink 1.x.
|
|
|
|
#force_whois_extensions: true
|
|
|
|
|
2018-02-21 08:41:31 +01:00
|
|
|
unrealnet:
|
2015-10-03 08:17:57 +02:00
|
|
|
ip: ::1
|
2018-02-21 08:41:31 +01:00
|
|
|
port: 8067
|
2015-10-03 08:17:57 +02:00
|
|
|
|
2016-06-11 20:29:11 +02:00
|
|
|
# Determines whether IPv6 should be used for this connection. Should the ip:
|
2016-11-05 02:13:15 +01:00
|
|
|
# above be a hostname instead of an IP, this will also affect whether A records
|
2018-06-15 11:43:33 +02:00
|
|
|
# (IPv4) or AAAA records (IPv6) will be used in resolving it.
|
2018-06-26 23:44:07 +02:00
|
|
|
# As of PyLink 2.0-beta1, you can leave this unset for direct connections to IP addresses;
|
2018-06-15 11:43:33 +02:00
|
|
|
# the address type will be automatically detected.
|
|
|
|
#ipv6: yes
|
2015-10-03 08:17:57 +02:00
|
|
|
|
2016-07-29 09:32:02 +02:00
|
|
|
# Received and sent passwords. For passwordless links using SSL fingerprints, simply set
|
|
|
|
# these two fields to "*" and enable SSL with a cert and key file.
|
2016-04-02 19:13:45 +02:00
|
|
|
recvpass: "coffee"
|
|
|
|
sendpass: "tea"
|
2018-04-08 00:44:44 +02:00
|
|
|
|
2018-06-16 00:43:20 +02:00
|
|
|
ssl: true
|
2016-07-29 09:32:02 +02:00
|
|
|
#ssl_certfile: mycert.pem
|
|
|
|
#ssl_keyfile: mycert.pem
|
2016-04-02 19:13:45 +02:00
|
|
|
hostname: "pylink.example.com"
|
|
|
|
sid: "2PY"
|
|
|
|
sidrange: "8##"
|
|
|
|
protocol: "unreal"
|
2018-02-21 08:41:31 +01:00
|
|
|
autoconnect: 10
|
2016-04-02 19:13:45 +02:00
|
|
|
|
2018-04-08 00:44:44 +02:00
|
|
|
# Sets the full network name, used for display purposes.
|
|
|
|
netname: "Network name"
|
|
|
|
|
|
|
|
# You can also define network-specific nicks, idents, and hosts for various service
|
|
|
|
# bots, using the configuration options "servicename_nick", etc.
|
2016-06-11 19:44:14 +02:00
|
|
|
#pylink_nick: MagicServ
|
|
|
|
#pylink_ident: magicserv
|
2017-07-13 00:53:02 +02:00
|
|
|
#pylink_host: magicserv.mynet.net
|
|
|
|
#pylink_realname: Magic Link Service
|
2016-06-11 19:44:14 +02:00
|
|
|
#games_nick: MagicGames
|
|
|
|
#games_ident: magicgames
|
2017-07-13 00:38:26 +02:00
|
|
|
#games_host: games.mynet.net
|
2017-07-13 00:53:02 +02:00
|
|
|
#games_realname: Magic Games Service
|
2016-06-11 19:44:14 +02:00
|
|
|
|
2016-04-18 07:48:45 +02:00
|
|
|
nefarious:
|
2016-08-10 20:28:35 +02:00
|
|
|
ip: somenet.ddns.local
|
2016-04-18 07:48:45 +02:00
|
|
|
port: 45454
|
2018-02-21 08:41:31 +01:00
|
|
|
|
2018-06-16 03:43:00 +02:00
|
|
|
# When the IP field is set to a hostname, the "ipv6" option determines whether IPv4 or IPv6
|
|
|
|
# addresses should be used when resolving it. You can leave this field blank and use an
|
|
|
|
# explicit bindhost instead, which will let the the address type be automatically detected.
|
2018-02-21 08:41:31 +01:00
|
|
|
#ipv6: false
|
2018-06-16 03:43:00 +02:00
|
|
|
#bindhost: 1111:2222:3333:4444
|
2018-02-21 08:41:31 +01:00
|
|
|
|
2018-06-16 00:36:31 +02:00
|
|
|
# Note: if you are actually using dynamic DNS for an IRC link, consider enabling
|
|
|
|
# TLS/SSL certificate checking (new in 2.0). These checks are disabled by default for
|
|
|
|
# server links because self-signed certificates are still quite common.
|
2018-06-16 00:43:20 +02:00
|
|
|
ssl: true
|
2018-06-16 00:36:31 +02:00
|
|
|
#ssl_accept_invalid_certs: false
|
|
|
|
#ssl_validate_hostname: true
|
|
|
|
|
2018-02-21 08:41:31 +01:00
|
|
|
recvpass: "PASS123"
|
|
|
|
sendpass: "PASS321"
|
|
|
|
hostname: "pylink.somenet.ddns.local"
|
2016-04-18 07:48:45 +02:00
|
|
|
|
2017-10-12 02:59:16 +02:00
|
|
|
# For P10, the SID and SID range options correspond to P10 server numerics. The PyLink
|
|
|
|
# "sid" should be the numeric of the main server, and "sidrange" should be a range of
|
|
|
|
# numerics that subservers (e.g. for relay) can use.
|
|
|
|
# Make sure no other servers are in the numeric range you're reserving for PyLink, or you
|
|
|
|
# may get conflicts.
|
2016-04-18 07:48:45 +02:00
|
|
|
sid: 50
|
|
|
|
sidrange: "100-150"
|
2018-02-21 08:41:31 +01:00
|
|
|
#channels: ["#lounge"]
|
2017-03-25 20:06:44 +01:00
|
|
|
protocol: p10
|
2018-02-21 08:41:31 +01:00
|
|
|
autoconnect: 10
|
2018-04-08 00:44:44 +02:00
|
|
|
netname: "Network name"
|
2018-02-21 08:41:31 +01:00
|
|
|
|
|
|
|
# Configures the relay separator. Note: /'s in nicks are automatically translated to |
|
|
|
|
# for IRCds other than Unreal and InspIRCd, since they are not supported in nicks.
|
|
|
|
#separator: "|"
|
2016-04-18 07:48:45 +02:00
|
|
|
|
2017-03-25 09:40:30 +01:00
|
|
|
### The following options are specific to P10 servers:
|
|
|
|
# Determines whether extended accounts should be used for this network.
|
|
|
|
# For Nefarious, this **MUST** match the EXTENDED_ACCOUNTS setting in your IRCd configuration.
|
|
|
|
# For other P10 IRCds, this should be set to FALSE.
|
|
|
|
use_extended_accounts: true
|
|
|
|
|
2018-02-21 08:41:31 +01:00
|
|
|
# Sets the IRCd type. The following options are supported here: 'nefarious', 'snircd', 'ircu',
|
|
|
|
# and 'generic'. This defaults to 'nefarious'.
|
2017-03-25 09:40:30 +01:00
|
|
|
# With this key set to 'nefarious', FAKE (external vHost changing) and SETHOST (host changing
|
|
|
|
# for PyLink / relay clients) are enabled, along with a set of modes tailored to Nefarious.
|
|
|
|
|
|
|
|
# With this key set to 'snircd', SETHOST and a set of modes tailored to snircd are enabled.
|
2018-02-21 08:26:06 +01:00
|
|
|
# Host changing for other users (e.g. via the changehost plugin) is not supported.
|
2017-03-25 09:40:30 +01:00
|
|
|
|
2017-03-25 21:11:47 +01:00
|
|
|
# With this key set to 'ircu', a set of modes tailored to IRCu is enabled.
|
2018-02-21 08:26:06 +01:00
|
|
|
# Host changing is not supported.
|
2017-03-25 21:11:47 +01:00
|
|
|
|
2017-03-25 09:40:30 +01:00
|
|
|
# With this key set to 'generic', neither of these host changing features are enabled
|
2017-03-25 21:11:47 +01:00
|
|
|
# and a baseline RFC1459 mode set is used. This configuration is not officially supported.
|
2018-02-21 08:41:31 +01:00
|
|
|
|
|
|
|
# (This option was previously named "p10_ircd" in PyLink 1.2, and that option name is
|
|
|
|
# deprecated as of 2.0).
|
2017-07-13 06:32:04 +02:00
|
|
|
ircd: nefarious
|
2017-03-25 09:40:30 +01:00
|
|
|
|
2016-04-18 07:48:45 +02:00
|
|
|
# Determines whether account-based cloaks should be used (someone.users.yournet.org
|
2018-02-21 08:41:31 +01:00
|
|
|
# format). This setting MUST match your IRCd configuration.
|
2017-03-25 19:58:51 +01:00
|
|
|
# On Nefarious, ENABLE this if HOST_HIDING_STYLE is set to either 1 or 3.
|
|
|
|
# On other P10 IRCds, ENABLE this if HOST_HIDING is set to TRUE.
|
2017-03-25 09:40:30 +01:00
|
|
|
use_account_cloaks: false
|
2016-04-18 07:48:45 +02:00
|
|
|
|
2018-02-21 08:41:31 +01:00
|
|
|
# The cloak suffix to be used for account-based cloaks. This MUST match your
|
2016-04-18 07:48:45 +02:00
|
|
|
# IRCd configuration if use_account_cloaks is enabled.
|
|
|
|
cloak_suffix: "users.yournet.org"
|
|
|
|
|
2018-02-21 08:26:06 +01:00
|
|
|
### The following options are specific to Nefarious and should be disabled unless
|
|
|
|
# you're using another P10 variant explicitly supporting them:
|
|
|
|
# Halfop is optional in Nefarious. This setting should match your IRCd configuration.
|
2017-03-25 19:58:51 +01:00
|
|
|
use_halfop: false
|
|
|
|
|
2016-04-18 07:48:45 +02:00
|
|
|
# Determines whether account-based cloaks should be used for opers
|
|
|
|
# (someone.opers.yournet.org format). If use_account_cloaks is disabled,
|
2018-02-21 08:41:31 +01:00
|
|
|
# this will have no effect. This setting MUST match your IRCd configuration.
|
2017-03-25 09:40:30 +01:00
|
|
|
use_oper_account_cloaks: false
|
2016-04-18 07:48:45 +02:00
|
|
|
|
2018-02-21 08:41:31 +01:00
|
|
|
# The cloak suffix to be used for IRCop account-based cloaks. This MUST match your
|
2016-04-18 07:48:45 +02:00
|
|
|
# IRCd configuration if use_oper_account_cloaks is enabled.
|
|
|
|
oper_cloak_suffix: "staff.yournet.org"
|
|
|
|
|
|
|
|
# Determines whether UnrealIRCd-style hashed-host cloaks will be used.
|
2018-02-21 08:26:06 +01:00
|
|
|
# This setting should match your IRCd configuration.
|
2016-04-18 07:48:45 +02:00
|
|
|
# ENABLE this if HOST_HIDING_STYLE is set to either 2 or 3.
|
2017-03-25 09:40:30 +01:00
|
|
|
use_hashed_cloaks: false
|
2016-04-18 07:48:45 +02:00
|
|
|
|
2018-02-21 08:41:31 +01:00
|
|
|
ts6net:
|
|
|
|
ip: 1.2.3.4
|
|
|
|
port: 7000
|
2018-06-16 00:43:20 +02:00
|
|
|
ssl: true
|
2018-02-21 08:41:31 +01:00
|
|
|
recvpass: "abcd"
|
|
|
|
sendpass: "abcd"
|
|
|
|
hostname: "pylink.example.com"
|
|
|
|
sid: "8PY"
|
2018-04-08 00:44:44 +02:00
|
|
|
netname: "Network name"
|
2018-02-21 08:41:31 +01:00
|
|
|
sidrange: "8##"
|
|
|
|
|
|
|
|
protocol: "ts6"
|
|
|
|
autoconnect: 10
|
|
|
|
|
|
|
|
### The following options are specific to TS6 servers:
|
|
|
|
# Toggles owner (+y), admin (+a), and halfop (+h) support for
|
|
|
|
# shadowircd/elemental-ircd/chatircd. These default to off for the best compatibility.
|
|
|
|
#use_owner: false
|
|
|
|
#use_admin: false
|
|
|
|
#use_halfop: false
|
|
|
|
|
|
|
|
# Sets the IRCd (channel/user mode set) to target - currently supported values include
|
|
|
|
# 'chatircd', 'charybdis', and 'elemental' (elemental-ircd). This option defaults to
|
|
|
|
# 'charybdis' if not set, and replaces the "use_elemental_modes" option from PyLink 1.2
|
|
|
|
# and earlier.
|
|
|
|
#ircd: charybdis
|
|
|
|
|
2019-08-23 02:39:00 +02:00
|
|
|
# Determines whether PyLink servers should be marked hidden in /links and /map.
|
|
|
|
# This only takes effect if the 'flatten_links' option in the IRCd is enabled.
|
|
|
|
# Defaults to false if not set.
|
|
|
|
#hidden: false
|
|
|
|
|
2016-07-29 07:49:25 +02:00
|
|
|
# Sample Clientbot configuration, if you want to connect PyLink as a bot to relay somewhere
|
|
|
|
# (or do other bot things).
|
|
|
|
magicnet:
|
2018-06-15 11:47:12 +02:00
|
|
|
ip: irc.somenet.local
|
2016-07-29 07:49:25 +02:00
|
|
|
port: 6697
|
|
|
|
|
2018-02-21 08:41:31 +01:00
|
|
|
# Optional server password.
|
2016-07-29 07:49:25 +02:00
|
|
|
#sendpass: "wastedbytes103"
|
|
|
|
|
2018-04-08 00:44:44 +02:00
|
|
|
netname: "Network name"
|
2018-02-21 08:41:31 +01:00
|
|
|
#channels: ["#this-works-as-usual"]
|
2016-07-29 07:49:25 +02:00
|
|
|
protocol: "clientbot"
|
|
|
|
|
2018-04-08 00:37:42 +02:00
|
|
|
# You can set the PyLink bot nick and ident using the "pylink_nick" and "pylink_ident" options.
|
2017-07-12 17:33:28 +02:00
|
|
|
#pylink_nick: pybot
|
2016-07-29 07:49:25 +02:00
|
|
|
#pylink_ident: pybot
|
|
|
|
|
2017-08-22 08:12:22 +02:00
|
|
|
# You can also define alternate fallback nicks on Clientbot. These will be used in order
|
|
|
|
# if successive nicks are unavailable, falling back to the default nick plus an increasing
|
|
|
|
# number of underscores.
|
|
|
|
#pylink_altnicks: ["pybot`", "pybot-"]
|
|
|
|
|
2018-06-15 11:47:12 +02:00
|
|
|
# TLS/SSL options. Certfile and keyfile are optional, but can be used for CertFP/SASL external
|
|
|
|
# where supported.
|
2016-07-29 07:49:25 +02:00
|
|
|
ssl: true
|
|
|
|
#ssl_certfile: mycert.pem
|
|
|
|
#ssl_keyfile: mycert.pem
|
|
|
|
|
2018-06-15 11:47:12 +02:00
|
|
|
# New in 2.0: Determines whether the target server's TLS certificate hostnames should be
|
2018-06-16 00:27:42 +02:00
|
|
|
# checked against the hostname we're set to connect to. This defaults to true for Clientbot
|
|
|
|
# networks and others linked to via a hostname. It depends on ssl_accept_invalid_certs being
|
|
|
|
# *disabled* to take effect.
|
2018-06-15 11:47:12 +02:00
|
|
|
#ssl_validate_hostname: true
|
|
|
|
|
|
|
|
# New in 2.0: When enabled, this disables TLS certificate validation on the target network.
|
2018-06-16 00:27:42 +02:00
|
|
|
# This defaults to false (bad certs are rejected) on Clientbot and true for server protocols
|
|
|
|
# (where bad certs are accepted). This disables the ssl_validate_hostname option,
|
|
|
|
# effectively forcing it to be false.
|
2018-06-15 11:47:12 +02:00
|
|
|
#ssl_accept_invalid_certs: false
|
|
|
|
|
2018-06-16 00:32:35 +02:00
|
|
|
# Autoconnect options work the same as on a regular network.
|
2018-02-21 08:23:04 +01:00
|
|
|
autoconnect: 30
|
2018-06-16 00:32:35 +02:00
|
|
|
#autoconnect_multiplier: 1.5
|
|
|
|
#autoconnect_max: 1800
|
2018-02-21 08:23:04 +01:00
|
|
|
|
|
|
|
# Message throttling: when set to a non-zero value, only one message will be sent every X
|
|
|
|
# seconds. If your bot is constantly running into Excess Flood errors, raising this to
|
2018-10-11 07:39:30 +02:00
|
|
|
# something like 0.5 or 1.0 should help. Since PyLink 2.0.2, this defaults to 0 if not set.
|
2018-02-21 08:23:04 +01:00
|
|
|
throttle_time: 0.3
|
|
|
|
|
|
|
|
# Determines whether messages from unknown clients (servers, clients not sharing in a -n
|
|
|
|
# channel, etc.) should be forwarded via the PyLink server. If this is disabled, these
|
|
|
|
# messages will be silently dropped. This overrides the "accept_weird_senders" option in the
|
|
|
|
# "relay:" configuration block, and defaults to True for consistency with older releases.
|
|
|
|
#relay_weird_senders: false
|
|
|
|
|
|
|
|
### The following options are specific to Clientbot servers:
|
2016-12-18 01:10:09 +01:00
|
|
|
# SASL login: for mechanisms, only EXTERNAL (SSL cert) and PLAIN (username and password)
|
|
|
|
# are supported so far.
|
|
|
|
# SASL PLAIN requires the sasl_username and sasl_password options to be set, while
|
|
|
|
# SASL EXTERNAL requires ssl, ssl_certfile, and ssl_keyfile to work.
|
|
|
|
#sasl_mechanism: "PLAIN"
|
2018-04-08 00:44:44 +02:00
|
|
|
#sasl_username: "abc"
|
2018-02-21 08:23:04 +01:00
|
|
|
#sasl_password: "somestrangepassword"
|
2016-12-18 01:10:09 +01:00
|
|
|
|
2017-04-06 08:08:17 +02:00
|
|
|
# Defines the SASL timeout - this defaults to 15 seconds.
|
|
|
|
#sasl_timeout: 15
|
|
|
|
|
2016-12-19 10:06:49 +01:00
|
|
|
# If this option is enabled, the bot will attempt SASL authentication even after it's
|
|
|
|
# connected, as services become available throughout netsplits and reconnects.
|
|
|
|
# Note: This requires an IRC server capable of IRCv3.2 cap-notify and sasl:
|
2018-02-21 08:41:31 +01:00
|
|
|
# InspIRCd 3.x and charybdis 4+ are some compatible IRCds as of 2016-12-19.
|
2018-04-08 00:44:44 +02:00
|
|
|
# This defaults to false.
|
2016-12-19 10:06:49 +01:00
|
|
|
#sasl_reauth: true
|
|
|
|
|
2018-02-21 08:19:19 +01:00
|
|
|
# Raw IRC messages to send on connect. As of 2.0-alpha2, expansions such as $nick, $ident,
|
2018-02-21 08:41:31 +01:00
|
|
|
# and $host are also supported via Python template strings:
|
2018-02-21 08:19:19 +01:00
|
|
|
# (https://docs.python.org/3/library/string.html#template-strings)
|
2016-09-01 03:10:51 +02:00
|
|
|
#autoperform:
|
2018-02-21 08:19:19 +01:00
|
|
|
# - "MODE $nick +B"
|
2016-09-01 03:10:51 +02:00
|
|
|
# - "NOTICE somebody :hello, i've connected"
|
|
|
|
|
2019-11-30 08:51:57 +01:00
|
|
|
# Determines whether we should always attempt to rejoin channels we've been removed from.
|
|
|
|
# These attempts take place in the same interval as pingfreq. Defaults to false if not set.
|
|
|
|
#always_autorejoin: true
|
|
|
|
|
2016-10-10 04:03:46 +02:00
|
|
|
# Determines whether oper statuses should be tracked on this Clientbot network. This
|
|
|
|
# defaults to False for the best security, since oper status may allow more access to the
|
|
|
|
# entire PyLink service than what's desired, even when PyLink is only connected as a bot.
|
2017-07-12 17:33:28 +02:00
|
|
|
# This defaults to false if not specified.
|
|
|
|
#track_oper_statuses: false
|
2016-10-10 04:03:46 +02:00
|
|
|
|
2017-09-24 06:25:48 +02:00
|
|
|
# Determines whether the bot should enumerate ban/banexception/invex modes when joining channels.
|
|
|
|
# This is required for relay mode sync to work properly, because the bot will otherwise refuse to
|
|
|
|
# relay unbans (Clientbot only removes modes that it knows are set).
|
|
|
|
# This defaults to False because it causes extra MODE messages to be sent on connect, which can
|
|
|
|
# drastically slow down startup if the bot joins a lot of channels.
|
|
|
|
#fetch_ban_lists: true
|
|
|
|
|
2015-04-25 07:37:07 +02:00
|
|
|
# Plugins to load (omit the .py extension)
|
|
|
|
plugins:
|
2017-05-22 05:15:48 +02:00
|
|
|
# Commands plugin: Provides simple commands to check login status, show info on users and
|
|
|
|
# channels, etc.
|
2015-06-02 22:37:35 +02:00
|
|
|
- commands
|
2015-09-26 18:38:50 +02:00
|
|
|
|
2017-05-22 05:15:48 +02:00
|
|
|
# Networks plugin: Allows you to manage connections to networks while PyLink is running.
|
2015-09-03 08:08:04 +02:00
|
|
|
- networks
|
2015-09-26 18:38:50 +02:00
|
|
|
|
2017-07-30 17:44:27 +02:00
|
|
|
# Ctcp plugin: handles basic CTCP replies (VERSION, etc) towards service bots.
|
2016-06-15 20:31:40 +02:00
|
|
|
- ctcp
|
|
|
|
|
2019-05-13 11:08:11 +02:00
|
|
|
# Servprotect plugin: disconnects from networks if too many kills or nick collisions to
|
|
|
|
# PyLink clients are received. Requires the cachetools Python library.
|
|
|
|
- servprotect
|
|
|
|
|
2017-05-22 05:15:48 +02:00
|
|
|
# Relay plugin: Transparent server-side relay between channels (like Janus). See
|
|
|
|
# the relay: block below for configuration.
|
2016-01-31 08:37:01 +01:00
|
|
|
#- relay
|
2015-09-26 18:38:50 +02:00
|
|
|
|
2017-05-22 05:15:48 +02:00
|
|
|
# Relay Clientbot plugin: this allows channel messages and events like
|
2016-08-08 07:08:03 +02:00
|
|
|
# JOIN, PART, KICK, etc. to relay over networks using Clientbot. You will
|
|
|
|
# want this loaded if you're using PyLink as a relay bot.
|
|
|
|
#- relay_clientbot
|
|
|
|
|
2017-05-22 05:15:48 +02:00
|
|
|
# Fantasy plugin: Allows you to trigger commands in channels by prefixing them
|
|
|
|
# with the PyLink service's nick or configurable prefix characters.
|
2016-01-31 08:37:01 +01:00
|
|
|
#- fantasy
|
2015-12-31 01:54:51 +01:00
|
|
|
|
2017-07-30 17:44:27 +02:00
|
|
|
# Oper commands plugin: Provides a handful of network management commands. (KILL, JUPE, etc.)
|
|
|
|
#- opercmds
|
2016-07-27 01:01:42 +02:00
|
|
|
|
2016-07-24 07:15:54 +02:00
|
|
|
# Automode plugin: allows assigning channel access to specific hostmasks or
|
2018-07-15 06:05:39 +02:00
|
|
|
# exttargets. See docs/automode.md
|
2016-07-24 07:15:54 +02:00
|
|
|
# for a usage guide.
|
|
|
|
#- automode
|
2015-12-31 01:54:51 +01:00
|
|
|
|
2017-07-30 17:44:27 +02:00
|
|
|
# Changehost plugin: Automatically changes the hostmask (i.e. sets vHosts) on
|
|
|
|
# matching users as they connect. This requires the changehost: block to be
|
|
|
|
# configured correctly below.
|
|
|
|
#- changehost
|
2016-09-24 20:19:16 +02:00
|
|
|
|
2018-06-02 09:09:52 +02:00
|
|
|
# Antispam plugin: catches and punishes spammers locally and across relays as necessary.
|
|
|
|
# You *will need* to configure it via the "antispam:" configuration block below.
|
|
|
|
#- antispam
|
|
|
|
|
2017-03-13 21:38:53 +01:00
|
|
|
# Global plugin: Janus-style global plugin; announces messages to all channels the PyLink
|
|
|
|
# client is in.
|
|
|
|
#- global
|
|
|
|
|
2017-07-30 17:44:27 +02:00
|
|
|
# Bots plugin: Allows you to manipulate PyLink service bots on networks.
|
|
|
|
#- bots
|
|
|
|
|
|
|
|
# Servermaps plugin: displays network /map's from the PyLink server's perspective.
|
|
|
|
#- servermaps
|
|
|
|
|
2018-01-21 22:50:37 +01:00
|
|
|
# Raw plugin: Provides a 'raw' command for sending raw text to IRC.
|
|
|
|
# Not supported outside Clientbot networks!
|
|
|
|
#- raw
|
|
|
|
|
2016-06-05 05:31:25 +02:00
|
|
|
logging:
|
|
|
|
# This configuration block defines targets that PyLink should log commands,
|
|
|
|
# errors, etc., to.
|
|
|
|
|
2017-06-02 17:42:32 +02:00
|
|
|
# This sets the level for console logging, which is always enabled. Valid
|
2016-06-05 05:31:25 +02:00
|
|
|
# settings include DEBUG, INFO, WARNING, ERROR, and CRITICAL: see
|
|
|
|
# https://docs.python.org/3/library/logging.html#logging-levels for details.
|
2017-06-02 17:42:32 +02:00
|
|
|
# Prior to PyLink 1.2, this option was erroneously named 'log:stdout', even though the actual
|
|
|
|
# logging output goes to stderr. That option name (log:stdout) is now *deprecated*.
|
|
|
|
console: INFO
|
2016-06-05 05:31:25 +02:00
|
|
|
|
|
|
|
channels:
|
2016-11-05 02:13:15 +01:00
|
|
|
# Logs to channels on the specified networks.
|
|
|
|
# Make sure that the main PyLink client is also configured to join your
|
|
|
|
# log channel in the "channels:" block for the relevant networks.
|
2016-06-25 23:10:04 +02:00
|
|
|
|
|
|
|
# Note: Log messages are forwarded over relay, so you will get duplicate
|
2016-06-05 05:31:25 +02:00
|
|
|
# messages if you add log blocks for more than one channel in one
|
|
|
|
# relay.
|
2016-06-25 23:10:04 +02:00
|
|
|
|
|
|
|
# Note 2: DEBUG logging is not supported here: any log level settings
|
|
|
|
# below INFO be automatically raised to INFO.
|
2016-06-05 05:31:25 +02:00
|
|
|
|
|
|
|
inspnet:
|
|
|
|
"#services":
|
|
|
|
loglevel: INFO
|
|
|
|
"#pylink-notifications":
|
|
|
|
loglevel: WARNING
|
|
|
|
|
|
|
|
ts6net:
|
|
|
|
"#services":
|
|
|
|
loglevel: INFO
|
|
|
|
|
|
|
|
files:
|
|
|
|
# Logs to file targets. These will be placed in the log/ folder in the
|
|
|
|
# PyLink directory, with a filename based on the current instance name
|
2016-11-05 02:13:15 +01:00
|
|
|
# and the target name: instancename-targetname.log
|
2016-06-05 05:31:25 +02:00
|
|
|
|
|
|
|
# When running with ./pylink, this will create log/pylink-errors.log
|
|
|
|
# When running with ./pylink someconf.yml, this will create log/someconf-errors.log
|
|
|
|
"errors":
|
|
|
|
loglevel: ERROR
|
|
|
|
|
|
|
|
# Ditto above. When running with ./pylink, it will use log/pylink-commands.log
|
|
|
|
# When running with ./pylink someconf.yml, this will create log/someconf-commands.log
|
|
|
|
"commands":
|
|
|
|
loglevel: INFO
|
|
|
|
|
2016-09-09 03:02:55 +02:00
|
|
|
# Uncomment this to enable debug logging. This is only needed if you're developing for
|
|
|
|
# PyLink or are requested to enable this when reporting a bug.
|
|
|
|
#"debug":
|
|
|
|
# loglevel: DEBUG
|
|
|
|
|
2016-10-06 05:30:32 +02:00
|
|
|
#filerotation:
|
2016-08-18 07:00:42 +02:00
|
|
|
# Configures optional log file rotation. When enabled, PyLink will create rotate files
|
|
|
|
# in the format pylink-commands.log, pylink-commands.log.1, pylink-commands.log.2, etc.
|
|
|
|
# If either max_bytes or backup_count is 0, log rotation will be disabled.
|
|
|
|
|
2019-04-06 11:20:28 +02:00
|
|
|
# Max amount of bytes per file before rotation is done. Defaults to 20 MiB (20971520 bytes).
|
|
|
|
#max_bytes: 20971520
|
2016-08-18 07:00:42 +02:00
|
|
|
|
|
|
|
# Amount of backups to make. Defaults to 5.
|
|
|
|
#backup_count: 5
|
|
|
|
|
2015-12-31 01:54:51 +01:00
|
|
|
changehost:
|
|
|
|
# This block configures the Changehost plugin. You don't need this if you
|
|
|
|
# aren't using it.
|
|
|
|
|
2017-01-03 16:30:35 +01:00
|
|
|
# Sets the networks where Changehost should be enabled. Please note: changehost does NOT support
|
|
|
|
# arbitrarily cloaking clients introduced by PyLink (e.g. relay clients), as doing so would make
|
|
|
|
# ban matching impossible. In these cases, it is the remote admin's job to turn on cloaking on
|
2019-10-11 06:10:01 +02:00
|
|
|
# their IRCd.
|
|
|
|
# You can also add to this list of enabled networks by setting "servers::<server name>::changehost_enable"
|
|
|
|
# to true.
|
2015-12-31 01:54:51 +01:00
|
|
|
enabled_nets:
|
|
|
|
- inspnet
|
|
|
|
- ts6net
|
|
|
|
|
2016-11-20 20:53:55 +01:00
|
|
|
# Sets the networks where Changehost hosts should be enforced: that is, any attempts
|
|
|
|
# by the user or other services to overwrite a host will be reverted.
|
2019-10-11 06:10:01 +02:00
|
|
|
# You can also add to this list of enabled networks by setting "servers::<server name>::changehost_enforce"
|
|
|
|
# to true.
|
2016-11-20 20:53:55 +01:00
|
|
|
#enforced_nets:
|
|
|
|
# - inspnet
|
|
|
|
|
2016-11-20 21:33:58 +01:00
|
|
|
# Sets the masks that Changehost enforcement should ignore: these can be users with certain
|
|
|
|
# hosts, exttargets, etc.
|
2019-10-11 05:57:51 +02:00
|
|
|
# Since PyLink 2.1, you can also add to this list on a per-network basis by adding options under
|
|
|
|
# "servers::<server name>::changehost_enforce_exceptions".
|
2016-11-20 21:33:58 +01:00
|
|
|
enforce_exceptions:
|
|
|
|
- "*!*@yournet/staff/*"
|
|
|
|
#- "$account"
|
|
|
|
|
2016-11-20 21:34:11 +01:00
|
|
|
# Determines whether Changehost rules should also match the host portion of a mask by IP and
|
2019-10-11 05:57:51 +02:00
|
|
|
# real hosts. These default to false. You can override these on a per-network basis by setting
|
|
|
|
# "servers::<server name>::changehost_match_ip" or "servers::<server name>::changehost_match_realhosts".
|
2016-11-20 21:34:11 +01:00
|
|
|
#match_ip: false
|
|
|
|
#match_realhosts: false
|
|
|
|
|
2019-10-11 06:10:01 +02:00
|
|
|
# This sets the hostmasks that Changehost should look for. Whenever someone with a matching nick!user@host
|
|
|
|
# connects, their host will be set to the text defined. The following substitutions are available here:
|
2016-08-03 07:27:14 +02:00
|
|
|
# $uid, $ts (time of connection), $nick, $realhost, $ident, and $ip.
|
2015-12-31 01:54:51 +01:00
|
|
|
# Invalid characters in hosts are replaced with a "-".
|
2019-10-11 05:57:51 +02:00
|
|
|
# Also, make sure you quote each entry so the YAML parser treats them as raw strings.
|
|
|
|
# Since PyLink 2.1, you can also add to this list on a per-network basis by adding options under
|
|
|
|
# "servers::<server name>::changehost_hosts".
|
2015-12-31 01:54:51 +01:00
|
|
|
hosts:
|
2019-10-11 05:57:51 +02:00
|
|
|
# Here are some examples. Note that to keep your users' details private, you should probably refrain
|
|
|
|
# from using $ip or $realhost, in these hostmasks, unless cloaking is already disabled.
|
2018-07-15 06:05:39 +02:00
|
|
|
"*!yourname@*.yournet.com": "$nick.opers.yournet.com"
|
2015-12-31 01:54:51 +01:00
|
|
|
"*!*@localhost": "some-server.hostname"
|
|
|
|
|
2019-10-11 05:57:51 +02:00
|
|
|
# Freenode-style masks are possible with this (though without the hashing)
|
2015-12-31 01:54:51 +01:00
|
|
|
"*!*@bnc-server.yournet.com": "yournet/bnc-users/$ident"
|
|
|
|
"*!*@ircip?.mibbit.com": "$ident.$realhost"
|
|
|
|
"WebchatUser*!*@*": "webchat/users/$ident"
|
|
|
|
|
|
|
|
relay:
|
|
|
|
# This block defines various options for the Relay plugin. You don't need this
|
|
|
|
# if you aren't using it.
|
|
|
|
|
2018-07-12 06:40:30 +02:00
|
|
|
# Determines whether all opers should be able to create, link, delink, destroy, and adjust
|
|
|
|
# claim settings & channel descriptions on relay channels. You can disable this if you want to
|
|
|
|
# configure Relay permissions in a more fine grained way, e.g. by granting each network admin
|
|
|
|
# their own PyLink account.
|
2018-06-12 09:26:24 +02:00
|
|
|
# This defaults to True if not set, for consistency with older (< 2.0) PyLink versions.
|
|
|
|
# Changing this setting requires a rehash and reload of the Relay plugin to apply.
|
|
|
|
allow_free_oper_links: true
|
|
|
|
|
2018-06-12 09:12:11 +02:00
|
|
|
# Determines whether all relay users' nicks will be tagged with their network, instead of only
|
|
|
|
# when a nick collision occurs. It is recommended that you either leave this on or maintain a
|
|
|
|
# list of nicks in "forcetag_nicks", so that your users don't complain about "nick in use"
|
|
|
|
# errors. This option defaults to True if not specified.
|
|
|
|
tag_nicks: true
|
|
|
|
|
|
|
|
# If tag_nicks is False, this specifies a list of NICK globs that network tags should be added
|
|
|
|
# for anyways (e.g. network services).
|
|
|
|
# There is also a per-network version of this option: see 'relay_forcetag_nicks'.
|
|
|
|
forcetag_nicks:
|
|
|
|
- "*Serv"
|
|
|
|
|
|
|
|
# Sets the suffix that relay subservers should use. Defaults to "relay" (as in net1.relay,
|
|
|
|
# net2.relay, etc.) if not specified. This can also be specified per network via the
|
|
|
|
# 'relay_server_suffix' option in a server block.
|
|
|
|
#server_suffix: "relay.yournet.net"
|
|
|
|
|
|
|
|
# Sets the default Relay separator. Defaults to / if not specified. The "separator"
|
|
|
|
# option in server blocks override this if specified.
|
|
|
|
separator: "/"
|
2015-12-31 01:54:51 +01:00
|
|
|
|
2018-06-12 02:26:36 +02:00
|
|
|
# This option defines lists of networks to relay user IPs between (instead of
|
|
|
|
# masking them as 0.0.0.0). If a network is in a pool (case-SENSITIVE), their
|
|
|
|
# opers will see the IPs from users in the rest of the pool, and the rest of
|
|
|
|
# the pool will receive IPs from that network too.
|
|
|
|
# You should generally have a consensus among your linked networks as to which
|
|
|
|
# network should be in which pool. A network can be part of one pool, multiple
|
|
|
|
# pools, or none at all.
|
|
|
|
# This option replaces the "relay::show_ips" and network-specific "relay_no_ips"
|
2018-06-26 23:44:07 +02:00
|
|
|
# options, which are DEPRECATED as of 2.0-beta1.
|
2018-06-12 02:26:36 +02:00
|
|
|
#ip_share_pools:
|
|
|
|
# - ["net1", "net2", "net3"]
|
|
|
|
# - ["net1", "meganet"]
|
2015-12-31 01:54:51 +01:00
|
|
|
|
2018-06-12 03:34:52 +02:00
|
|
|
# This option defines lists of networks that kills should be relayed between.
|
|
|
|
# If a network is in a pool (case-SENSITIVE), they will be able to kill users
|
|
|
|
# on other networks in the pool, and will also receive kills from other networks
|
|
|
|
# in the pool.
|
|
|
|
# You should generally have a consensus among your linked networks as to which
|
|
|
|
# network should be in which pool.
|
2018-06-14 23:44:03 +02:00
|
|
|
# When a kill is sent to a target not sharing any kill pool with the sender's network,
|
|
|
|
# the kill is relayed as a kick on the target to all shared channels where the sender
|
|
|
|
# has CLAIM access.
|
2018-06-12 03:34:52 +02:00
|
|
|
#kill_share_pools:
|
|
|
|
# - ["net1", "net2", "net3"]
|
|
|
|
|
2016-11-05 02:13:15 +01:00
|
|
|
# This determines whether private messages & notices will be forwarded over Clientbot relay,
|
2016-08-31 23:07:32 +02:00
|
|
|
# and whether the 'rpm' command will be allowed from Clientbot networks. This defaults to
|
|
|
|
# False.
|
|
|
|
allow_clientbot_pms: false
|
|
|
|
|
2016-09-26 05:06:24 +02:00
|
|
|
# Sets whether Clientbot mode sync will be enabled. Valid options:
|
2016-12-22 09:38:39 +01:00
|
|
|
# "full" - Sync bans, ban/invite exceptions, prefix modes, and all RFC1459-standard modes. The
|
|
|
|
# bot will need op in the Clientbot channel for this to work both ways.
|
|
|
|
# "half" - Sync only bans, ban/invite exceptions, and prefix modes. The bot will need op in the
|
|
|
|
# Clientbot channel for this to work both ways.
|
2016-09-26 05:06:24 +02:00
|
|
|
# "none" - Turns off mode sync. This is the default.
|
2016-12-22 09:38:39 +01:00
|
|
|
#
|
|
|
|
# Note: when mode sync is enabled and the bot is opped, CLAIM protection will be enforced across
|
|
|
|
# Clientbot links as well. This means that the bot will try to revert any mode changes by non-ops
|
|
|
|
# or services not in the channel. The workaround is to add all Clientbot networks to the CLAIM
|
|
|
|
# list of any affected channels.
|
|
|
|
#
|
2016-09-26 05:06:24 +02:00
|
|
|
#clientbot_modesync: none
|
|
|
|
|
2018-06-12 09:12:11 +02:00
|
|
|
# Determines whether remote opers will have user mode +H (hideoper) set on
|
|
|
|
# them. This has the benefit of lowering the oper count in /lusers and
|
|
|
|
# /stats (P|p), but only on IRCds that support it. This defaults to true
|
|
|
|
# if not set.
|
|
|
|
hideoper: true
|
|
|
|
|
|
|
|
# Determines whether the servers disconnecting in a netsplit should be shown when
|
|
|
|
# relaying quits due to a netsplit. Defaults to False.
|
|
|
|
show_netsplits: false
|
|
|
|
|
|
|
|
# Determines whether LINKACL should use whitelist or blacklist mode by default for newly
|
|
|
|
# created channels. This defaults to false, and can also be specified per network via the
|
|
|
|
# 'relay_linkacl_use_whitelist' option in a server block.
|
|
|
|
#linkacl_use_whitelist: false
|
|
|
|
|
|
|
|
# Determines whether CLAIM should be enabled by default for newly created channels.
|
|
|
|
# This defaults to true, and can also be specified per network via the 'relay_enable_default_claim'
|
|
|
|
# option in a server block.
|
|
|
|
#enable_default_claim: true
|
2017-02-25 04:16:01 +01:00
|
|
|
|
2017-02-25 06:15:40 +01:00
|
|
|
# Optionally defines a message that should be sent to all leaf channels that a network owns, when
|
|
|
|
# it disconnects. This uses a template string as documented at
|
|
|
|
# https://docs.python.org/3/library/string.html#template-strings, with the following substitutions:
|
|
|
|
# $network: the name of the network that this message is being announced to
|
|
|
|
# $channel: the channel that this message is being announced to
|
|
|
|
# $homenetwork: the name of the network that disconnected
|
|
|
|
# $homechannel: the original name of the channel this message is being announced to
|
|
|
|
# If this option is empty or not set, no announcement is made.
|
|
|
|
#disconnect_announcement: >-
|
|
|
|
# Network $homenetwork has disconnected: $channel will remain open as the link is
|
|
|
|
# re-established, but new links will be disabled.
|
|
|
|
|
2018-06-12 09:12:11 +02:00
|
|
|
# Determines whether messages from unknown clients (servers, clients not sharing in a -n channel,
|
|
|
|
# etc.) should be forwarded via the PyLink server. If this is disabled, these messages will be
|
|
|
|
# silently dropped. This defaults to True for consistency with older releases.
|
|
|
|
#accept_weird_senders: false
|
|
|
|
|
|
|
|
# Determines whether NickServ login info should be shown in the /whois output for
|
|
|
|
# relay users.
|
|
|
|
# Valid options include "all" (show this to everyone), "opers" (show only to
|
|
|
|
# opers), and "none" (disabled). Defaults to none if not specified.
|
|
|
|
whois_show_accounts: all
|
|
|
|
|
|
|
|
# Determines whether the origin server should be shown in the /whois output for
|
|
|
|
# relay users.
|
|
|
|
# Valid options include "all" (show this to everyone), "opers" (show only to
|
|
|
|
# opers), and "none" (disabled). Defaults to none if not specified.
|
|
|
|
whois_show_server: opers
|
|
|
|
|
2017-02-22 02:02:26 +01:00
|
|
|
#servprotect:
|
2017-02-22 02:04:59 +01:00
|
|
|
# This block configures the servprotect plugin; you don't need this if you aren't using it.
|
2017-02-22 02:02:26 +01:00
|
|
|
|
2017-02-22 02:04:59 +01:00
|
|
|
# length: How many KILL/SAVE's before a disconnect?
|
2017-02-22 02:02:26 +01:00
|
|
|
#length: 5
|
|
|
|
|
2017-02-22 06:06:47 +01:00
|
|
|
# age: Determines how much time (in seconds) should pass before the servprotect cache is reset.
|
2017-02-22 02:07:32 +01:00
|
|
|
# Note: updates to this option require a reload of the servprotect plugin, which automatically
|
|
|
|
# resets the cache.
|
2017-02-22 03:14:48 +01:00
|
|
|
#age: 10
|
2017-02-22 02:02:26 +01:00
|
|
|
|
2016-07-08 06:06:28 +02:00
|
|
|
automode:
|
2017-02-18 21:40:16 +01:00
|
|
|
# The following options in this block are common to all plugins that spawn service bots (games,
|
|
|
|
# automode, etc.):
|
|
|
|
|
|
|
|
# Sets the nick of the Automode service, if you're using it. If not defined, this defaults to
|
|
|
|
# the service name ("automode" in this case).
|
2016-09-13 05:03:29 +02:00
|
|
|
nick: Automode
|
2017-02-18 21:40:16 +01:00
|
|
|
#ident: Automode
|
2016-09-24 08:07:42 +02:00
|
|
|
|
|
|
|
# For each service, you can also specify what prefix modes you want the service bot to join channels with.
|
|
|
|
# Setting this to op (+o) for Automode makes it appear more like a standard IRC service, and lessens
|
|
|
|
# the risk of mode overrides being dropped.
|
|
|
|
joinmodes: 'o'
|
2017-01-30 09:06:19 +01:00
|
|
|
|
2017-02-18 21:54:26 +01:00
|
|
|
# Determines whether a separate service bot should be spawned for this plugin. This defaults to
|
|
|
|
# True, unless a network's protocol module doesn't support spawning extra service bots.
|
2017-03-11 08:21:17 +01:00
|
|
|
# This option overrides the global "spawn_services" option defined in "pylink:".
|
2018-07-02 09:35:55 +02:00
|
|
|
# If this is set to False, this plugin's commands and channels will be merged into that of the
|
|
|
|
# main PyLink service bot.
|
2017-02-18 21:54:26 +01:00
|
|
|
#spawn_service: true
|
|
|
|
|
2017-03-11 08:42:45 +01:00
|
|
|
# Defines a fantasy prefix for the Automode bot (requires spawn_services to be set and the
|
2017-03-26 23:03:31 +02:00
|
|
|
# fantasy plugin to be loaded). This overrides the "prefix" option in the "pylink:" config
|
|
|
|
# block.
|
2017-03-11 08:42:45 +01:00
|
|
|
prefix: "@"
|
|
|
|
|
2017-03-26 23:03:31 +02:00
|
|
|
# Determines whether this bot should respond to its nick (requires spawn_services to be set and the
|
|
|
|
# fantasy plugin to be loaded). This overrides the "respond_to_nick" option in the "pylink:" config
|
|
|
|
# block.
|
|
|
|
#respond_to_nick: true
|
|
|
|
|
2017-03-29 07:18:51 +02:00
|
|
|
# Determines whether we should show unknown command errors for this service bot. Defaults to True.
|
|
|
|
# This overrides the "show_unknown_commands" option in the "pylink:" config block.
|
|
|
|
#show_unknown_commands: true
|
|
|
|
|
2017-02-18 21:40:16 +01:00
|
|
|
games:
|
|
|
|
# Sets the nick of the Games service, if you're using it. This defaults to "games" if not defined.
|
|
|
|
nick: Games
|
2017-08-02 16:02:35 +02:00
|
|
|
|
2017-07-13 00:53:02 +02:00
|
|
|
# Ident, host, and realname can also be specified here, but they may be overriden per-network.
|
2017-07-13 00:38:26 +02:00
|
|
|
#ident: games
|
|
|
|
#host: play.games
|
2017-07-13 00:53:02 +02:00
|
|
|
#realname: Games Service
|
2017-02-18 21:40:16 +01:00
|
|
|
|
2017-03-11 08:42:45 +01:00
|
|
|
# Defines a fantasy prefix for the Games bot.
|
|
|
|
prefix: "./"
|
|
|
|
|
2017-01-30 09:06:19 +01:00
|
|
|
stats:
|
|
|
|
# Determines the time format that the Stats plugin should use for showing dates + times.
|
|
|
|
# Defaults to "%a, %d %b %Y %H:%M:%S +0000" (the RFC 2812 standard) if not specified.
|
|
|
|
time_format: "%c"
|
2017-03-13 21:38:53 +01:00
|
|
|
|
2017-08-02 16:02:35 +02:00
|
|
|
#global:
|
2017-03-13 21:38:53 +01:00
|
|
|
# Sets the text format for the global plugin, if it is loaded. This uses a template string as
|
|
|
|
# documented at https://docs.python.org/3/library/string.html#template-strings, with the
|
|
|
|
# following substitutions:
|
|
|
|
# $sender: the nick of the sender
|
|
|
|
# $network: the short network name of the origin network
|
|
|
|
# $fullnetwork: the full network name of the origin network
|
|
|
|
# $current_channel: the channel we're broadcasting on
|
|
|
|
# $current_network: the network we're currently broadcasting on
|
|
|
|
# $current_fullnetwork: the full name of the network we're currently broadcasting on
|
|
|
|
# $text: the global text
|
|
|
|
#format: "[$sender@$fullnetwork] $text"
|
2018-06-02 08:50:50 +02:00
|
|
|
|
2018-06-09 03:24:42 +02:00
|
|
|
# Configures a set of channel globs to exempt from announcements. You can also add to
|
|
|
|
# this per network via: servers::<server name>::global_exempt_channels,
|
|
|
|
# the contents of which will be merged into this list.
|
|
|
|
#exempt_channels:
|
|
|
|
# - "#*staff*"
|
|
|
|
|
2018-06-02 08:50:50 +02:00
|
|
|
#antispam:
|
|
|
|
# This block configures the antispam plugin; you don't need this if you aren't using it.
|
|
|
|
# Antispam is automatically enabled in all channels that it's in, and you can configure
|
|
|
|
# its presence (like with all service bots) by setting 'antispam_channels' on the applicable
|
2018-06-02 09:14:40 +02:00
|
|
|
# networks.
|
2018-06-02 08:50:50 +02:00
|
|
|
# Antispam also integrates with relay by punishing users locally (so that bans, kills, etc.
|
|
|
|
# are not bounced by relay) and not relaying messages marked as spam.
|
|
|
|
|
2018-06-02 09:07:20 +02:00
|
|
|
# Determines the minimum level of channel access needed to be exempt from Antispam.
|
|
|
|
# Note: opers are automatically exempt.
|
|
|
|
# Valid values are "voice", "halfop", and "op". This defaults to "halfop" if not set.
|
|
|
|
#exempt_level: halfop
|
2018-06-02 08:50:50 +02:00
|
|
|
|
2018-06-10 01:21:41 +02:00
|
|
|
# Determines whether Antispam should strip formatting before applying filter checks.
|
|
|
|
# Defaults to true if not set.
|
|
|
|
#strip_formatting: true
|
|
|
|
|
2018-06-02 08:50:50 +02:00
|
|
|
#masshighlight:
|
2018-06-02 09:57:26 +02:00
|
|
|
# This block configures options for antispam's mass highlight blocking. It can also be
|
2019-06-27 22:05:05 +02:00
|
|
|
# overridden (as an entire block) per-network by copying its options to:
|
2018-06-02 08:50:50 +02:00
|
|
|
# servers::<server name>::antispam_masshighlight
|
|
|
|
|
2018-06-02 09:57:26 +02:00
|
|
|
# Determines whether mass highlight prevention should be enabled. Defaults to false if not
|
|
|
|
# set.
|
2018-06-02 08:50:50 +02:00
|
|
|
#enabled: true
|
|
|
|
|
2018-06-02 10:05:00 +02:00
|
|
|
# Sets the punishment that Antispam should use against mass highlighters.
|
2018-06-10 01:18:24 +02:00
|
|
|
# Valid values include "kill", "kick", "ban", "quiet", "block", and combinations of these
|
|
|
|
# strung together with "+" (e.g. "kick+ban"). Defaults to "kick+ban" if not set.
|
2018-06-02 09:06:21 +02:00
|
|
|
#punishment: kick+ban
|
|
|
|
|
2018-06-02 08:50:50 +02:00
|
|
|
# Sets the kick / kill message used when mass highlight prevention is triggered.
|
|
|
|
#reason: "Mass highlight spam is prohibited"
|
|
|
|
|
|
|
|
# Sets the minimum message length and amount of nicks needed in a message for
|
2018-06-02 09:06:21 +02:00
|
|
|
# mass highlight prevention to trigger.
|
2018-06-02 08:50:50 +02:00
|
|
|
#min_length: 50
|
|
|
|
#min_nicks: 5
|
2018-06-02 10:05:00 +02:00
|
|
|
|
|
|
|
#textfilter:
|
|
|
|
# This block configures options for antispam's text spamfilters. It can also be overridden
|
2019-06-27 22:05:05 +02:00
|
|
|
# (as an entire block) per-network by copying its options to:
|
2018-06-02 10:05:00 +02:00
|
|
|
# servers::<server name>::antispam_textfilter
|
|
|
|
|
|
|
|
# Determines whether text spamfilters should be enabled. Defaults to false if not set.
|
|
|
|
#enabled: true
|
|
|
|
|
|
|
|
# Sets the punishment that Antispam's text spamfilter should use.
|
|
|
|
# Valid values include "kill", "kick", "ban", "quiet", and combinations of these strung
|
2018-06-10 01:18:24 +02:00
|
|
|
# together with "+" (e.g. "kick+ban"). Defaults to "kick+ban+block" if not set.
|
2018-10-20 20:58:36 +02:00
|
|
|
# If you want to use Antispam with PM monitoring (see the "watch_pms" option below), you
|
|
|
|
# will want to include at least one punishment that is not channel-specific
|
|
|
|
# ("kill" or "block").
|
|
|
|
# Punishments not supported in a context or network (e.g. kicking for PM spam or "quiet"
|
|
|
|
# on a network that doesn't support it) will be silently dropped if others succeed.
|
|
|
|
# If no punishments succeed, then a warning will be logged.
|
2018-06-10 01:18:24 +02:00
|
|
|
#punishment: kick+ban+block
|
2018-06-02 10:05:00 +02:00
|
|
|
|
2019-06-27 22:05:05 +02:00
|
|
|
# Sets the kick / kill message used when a message triggers the text spamfilter.
|
2018-06-02 10:05:00 +02:00
|
|
|
#reason: "Spam is prohibited"
|
|
|
|
|
2018-06-09 02:49:26 +02:00
|
|
|
# Determines whether PMs to PyLink clients should also be tracked to prevent spam.
|
|
|
|
# Valid values include false (the boolean value), 'services', and 'all':
|
|
|
|
# - If this is set to false, PMs are ignored by text filtering.
|
|
|
|
# - If this is set to 'services', only PMs sent to services are checked for spam (this allows
|
|
|
|
# them to effectively act as PM spam traps)
|
|
|
|
# - If this is set to 'all', all PyLink clients (including relay users) have incoming PMs
|
|
|
|
# checked for spam.
|
|
|
|
# This defaults to false if not set.
|
|
|
|
#watch_pms: false
|
|
|
|
|
2019-06-27 22:05:05 +02:00
|
|
|
# Configures a case-insensitive list of bad strings to block in messages (PRIVMSG, NOTICE).
|
2018-06-02 10:05:00 +02:00
|
|
|
# Globs are supported; use them to your advantage here.
|
|
|
|
# You can also define server specific lists of bad strings by defining
|
2019-06-27 22:05:05 +02:00
|
|
|
# servers::<server name>::antispam_textfilter_globs
|
2018-06-09 02:49:26 +02:00
|
|
|
# the contents of which will be *merged* into the global list of bad strings specified below.
|
2018-06-02 10:05:00 +02:00
|
|
|
#textfilter_globs:
|
|
|
|
# - "*very bad don't say this*"
|
|
|
|
# - "TWFkZSB5b3UgbG9vayE="
|
2019-06-27 22:06:20 +02:00
|
|
|
|
|
|
|
#partquit:
|
|
|
|
# This configures Antispam's part / quit message filter for plugins like Relay. It can also be
|
|
|
|
# overridden (as an entire block) per-network by copying its options to:
|
|
|
|
# servers::<server name>::antispam_partquit
|
|
|
|
|
|
|
|
# Determines whether part and quit messages matching any text spamfilters will be filtered.
|
|
|
|
# These default to true if not set.
|
|
|
|
#watch_parts: false
|
|
|
|
#watch_quits: false
|
|
|
|
|
|
|
|
# Sets the message to use when a part or quit message is filtered.
|
|
|
|
#part_filter_message: Reason filtered
|
|
|
|
#quit_filter_message: Reason filtered
|
|
|
|
|
|
|
|
# Configures a case-insensitive list of bad strings to block in part and quit messages.
|
|
|
|
# Globs are supported; use them to your advantage here.
|
|
|
|
# You can also define server specific lists of bad strings by defining
|
|
|
|
# servers::<server name>::antispam_partquit_globs
|
|
|
|
# the contents of which will be *merged* into the global list of bad strings specified below.
|
|
|
|
#partquit_globs:
|
|
|
|
# - "*some-spammy-site.xyz*"
|