InspIRCd v2 is coming to the end of its lifetime!

Fixes for security vulnerabilities will be provided until 2020-06-01 but after this date v2 will no longer be maintained.

InspIRCd v3 contains many new features including full support for all currently ratified IRCv3 extensions and WebSocket connections.

InspIRCd v3 installation instructions are available here and a list of breaking changes is available here.

The "randquote" Module

Description

This module allows random quotes to be sent to users when they connect to the server.

Configuration

To load this module use the following <module> tag:

<module name="m_randquote.so">

<files> & <execfiles>

This module extends the core <files> and <execfiles> tags with the following fields:

Name Type Default Value Description
quotes Text None The file to read or command to execute to obtain the quotes text.
Example Usage

Obtains the quotes by reading conf/quotes.txt:

<files ...
       quotes="conf/quotes.txt">

Obtains the quotes by executing curl https://www.example.com/quotes.txt:

<execfiles ...
           quotes="curl https://www.example.com/quotes.txt">

<randquote>

The <randquote> tag defines settings about how the randquote module should behave. This tag can only be defined once.

Name Type Default Value Description
file Text quotes The name of the field in <files> / <execfiles> to use when reading the quotes.
prefix Text None If defined then text to prefix quotes with when sending them to a user.
suffix Text None If defined then text to suffix quotes with when sending them to a user.
Example Usage
<randquote file="quotes"
           prefix=""
           suffix="">

Commands

Name Parameter Count Syntax Description
RANDQUOTE 0 None Retrieves a random quote from the quotes file.