Mercurial > irccd
view plugins/links/links.md @ 780:560b62f6b0a7
Core: rework socket layer, closes #939 @6h
Rework the ip_connector and ip_acceptor to be more easy to use. Also,
ip_connector will now use a resolver to find appropriate endpoints.
Bring back full support for IPv6/IPv4 with all possible combinations.
The tls_stream class now owns a shared ssl::context that is copied from the
acceptor or the connector. The tls_connector and tls_acceptor wraps basic ones
for convenience and simplicity.
Irccd and irccdctl now support local SSL sockets.
author | David Demelier <markand@malikania.fr> |
---|---|
date | Sun, 04 Nov 2018 17:26:05 +0100 |
parents | 4b5dba257d81 |
children | ebe561276c33 |
line wrap: on
line source
The plugin **links** is use to analyze links sent on channels. It will load the web page and extract its title on the same channel. ## Installation The plugin **links** is distributed with irccd. To enable it add the following to your `plugins` section: ```ini [plugins] links = "" ``` ## Usage The plugin will automatically fetch web page titles on message that contains either *http://something* or *https://something*. Example of possible output: ```nohighlight markand: http://example.org irccd: Example Domain ``` ## Configuration The following options are available under the `[plugin.links]` section: - **timeout**: (int) timeout in seconds before dropping a request (default: 30). ## Formats The **links** plugin supports the following formats in `[format.links]` section: - **info**: message written when title was parsed correctly ### Keywords supported The following keywords are supported: | Format | Keywords | Notes | |--------|-----------------------------------------------------------|-----------------------| | info | channel, nickname, origin, server, title | title is webpage link |