= 768" x-on:close-sidebar="sidebar=window.innerWidth >= 768 && true">
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
User-defined config
type t = {
server : string;
(*Address of the irc server
*)port : int;
(*Port of the server
*)username : string;
realname : string;
nick : string;
tls : bool;
tls_cert : Ssl.certificate option;
channel : string;
(*Channel to join after the connexion to the server
*)state_file : string;
(*Where plugins' state is stored
*)irc_log : irc_log;
(*Log IRC events
*)log_level : Logs.level;
(*Level of logging.
*)prefix : string;
(*prefix for commands
*)
}
val default : t
Default configuration:
- server = "irc.freenode.net"
- port = 7000
- username = "calculon"
- realname = "calculon"
- nick = "calculon"
- tls = true
- tls_cert = None
- channel = "#ocaml"
- state_file = "state.json"
- irc_log = `None
- log_level = Logs.Warning
- prefix = "!"
parse conf args
is the same as conf
, but some command line arguments can override its fields