view plugins/links/links.md @ 710:a17de53db29b

Misc: export libraries Export all libraries with CMake and install headers. While here, build Duktape as object library to avoid exporting it. Don't mix static/dynamic libraries anymore. closes #867 closes #439
author David Demelier <markand@malikania.fr>
date Sat, 07 Jul 2018 14:03:04 +0200
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 |