The "randquote" Module (v4)

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="randquote">

<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 quotes.txt:

<files ...
       quotes="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 file path or 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="">