Mercurial > irccd
view doc/examples/irccd.conf.sample @ 779:317c66a131be
Irccd: merge [identity] with [server], closes #905 @2h
While here, also add some tests for server_util, #779
author | David Demelier <markand@malikania.fr> |
---|---|
date | Thu, 01 Nov 2018 10:34:21 +0100 |
parents | bd12709b1975 |
children | 54496ac51649 |
line wrap: on
line source
# # irccd.conf -- config file for irccd # # Section plugins: # Load plugins by name or by paths. # # [plugins] # abc = "" # This will search for abc # ask = /tmp/ask.js # This use /tmp/ask.js to load the plugin # Section transport: # You can use transport to wait for any input you want. Unix and internet sockets are supported. Unix are used # for file based socket while internet bind to standard address plus a specific port. # # For internet sockets: # # [transport] # type = "ip" # port = "1234" # (int) port number, # address = "*" # (string) address to bind or "*" for any (Optional, default: *), # family = ( "ipv4", "ipv6" ) # (list) ipv6, ipv4. Both are accepted (Optional, default: ipv4). # # For unix sockets: # # [transport] # type = "unix" # path = "/tmp/irccd.sock" # (string) the file path to the socket. [transport] type = "ip" address = "*" port = "5980" family = ( "ipv4", "ipv6" ) # Section server: # List of server you want to connect to. A server may use an identity to # set the username, nickname and so on. A server is registered with a # unique id that is needed for irccdctl(1). # # [server] # name = "id" # (id) the unique id, # host = "chat.foo.com" # (string) the server address, # port = "4321" # (int) the server port (Optional, default: 6667), # nickname = "foo" # (string) the nickname (Optional, default: irccd), # username = "bar" # (string) the realname (Optional, default: IRC Client daemon), # realname = "Jean" # (string) the username name (Optional, default: irccd), # ctcp-version = "irccd" # (string) what version to respond to CTCP VERSION (Optional, default: IRC Client Daemon), # password = "secret" # (string) an optional password (Optional, default: none), # auto-rejoin = false # (bool) auto rejoin a channel after being kicked (Optional, default: false), # join-invite = false # (bool) join channels upon invitation (Optional, default: false), # channels = "" # (list) list of channels to auto join, (Optional, default: empty), # command-char = "!" # (string) the prefix for invoking special commands (Optional, default: !), # ssl = false # (bool) enable or disable SSL (Optional, default: false), # ssl-verify = false # (bool) verify the SSL certificates (Optional, default: true), # auto-reconnect = true # (bool) enable reconnection after failure (Optional, default: true), # auto-reconnect-timeout = 5 # (int) number of seconds to wait before retrying (Optional, default: 30). [server] identity = "default" name = "localhost" host = "localhost" port = 6667 reconnect-timeout = 60 reconnect-tries = 20 # Section rule: # Add one or more rules to filter IRC events. # # servers = "" # (list) a list of servers that will match the rule (Optional, default: empty), # channels = "" # (list) a list of channel (Optional, default: empty), # plugins = "" # (list) which plugins (Optional, default: empty), # events = "" # (list) which events (e.g onCommand, onMessage, ...) (Optional, default: empty), # action = "" # (string) set to **accept** or **drop**. # # Block plugin hangman everywhere. # # [rule] # plugins = "hangman" # action = drop # # Allow it again on #games@localhost # # [rule] # servers = "localhost" # channels = "#games" # plugins = "hangman" # action = accept