-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
240 additions
and
36 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: whowas | ||
description: |- | ||
The `<whowas>` tag defines the configuration of the `/WHOWAS` database. This tag can only be defined once. | ||
attributes: | ||
- name: groupsize | ||
type: Number | ||
required: false | ||
default: '10' | ||
description: |- | ||
The maximum number of `/WHOWAS` entries for a nickname. If set to 0 then `/WHOWAS` is disabled. | ||
- name: maxgroups | ||
type: Number | ||
required: false | ||
default: '10240' | ||
description: |- | ||
The maximum number of `/WHOWAS` nickname groups. If set to 0 then `/WHOWAS` is disabled. | ||
- name: maxkeep | ||
type: Duration | ||
required: false | ||
default: 1h | ||
description: |- | ||
The period of time to keep `/WHOWAS` records for. | ||
details: "" | ||
example: |- | ||
```xml | ||
<whowas groupsize="10" | ||
maxgroups="100000" | ||
maxkeep="3d"> | ||
``` |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
name: showfile | ||
|
||
description: |- | ||
This module adds support for showing the contents of files to users when they execute a command. | ||
configuration: | ||
- name: showfile | ||
description: |- | ||
The `<showfile>` tag defines a command to show the contents of a file. This tag can be defined as many times as required. | ||
attributes: | ||
- name: name | ||
type: Text | ||
required: true | ||
default: null | ||
description: |- | ||
The name of the command that users should execute to receive this file. | ||
- name: file | ||
type: Text | ||
required: true | ||
default: null | ||
description: |- | ||
The file path or name of the field in `<files>` / `<execfiles>` to use when reading the file. | ||
- name: method | ||
type: Text | ||
required: false | ||
default: numeric | ||
description: |- | ||
The method to use to send the message to the user. | ||
- name: endnumeric | ||
type: Number | ||
required: false | ||
default: 309 | ||
description: |- | ||
If the method field is set to numeric then the numeric to use to stop the response. | ||
- name: endtext | ||
type: Text | ||
required: false | ||
default: End of COMMAND | ||
description: |- | ||
If the method field is set to numeric then the message to use in the stopping numeric. | ||
- name: intronumeric | ||
type: Number | ||
required: false | ||
default: 308 | ||
description: |- | ||
If the method field is set to numeric then the numeric to use to start the response. | ||
- name: introtext | ||
type: Text | ||
required: false | ||
default: Showing COMMAND | ||
description: |- | ||
If the method field is set to numeric then the message to use in the starting numeric. | ||
- name: textnumeric | ||
type: Number | ||
required: false | ||
default: 232 | ||
description: |- | ||
If the method field is set to numeric then the numeric to use to show the response. | ||
details: |- | ||
The method field should be set to one of the following values: | ||
Value | Description | ||
------- | ----------- | ||
numeric | Send the message using the specified numerics. | ||
msg | Send the message using `PRIVMSG`. | ||
notice | Send the message using `NOTICE`. | ||
example: |- | ||
```xml | ||
<showfile name="RULES" | ||
file="rules.txt" | ||
introtext="Server rules:" | ||
endtext="End of server rules."> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<!-- This file contains a page fragment. Any changes will affect all pages that include it. --> | ||
|
||
Escape | Example (raw) | Example (formatted) | Description | ||
----------------- | --------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | ----------- | ||
`\b` | `foo \bbar\b baz` | foo <b>bar</b> baz | Toggles whether text should be bold. | ||
`\c<fg>[,<bg>]` | `foo \c03bar\c baz`<br>`foo \c11,04bar\c baz` | foo <f style="color:green">bar</f> baz<br>foo <f style="background-color:red;color:cyan">bar</f> baz | Toggles the foreground and/or background color of text. | ||
`\c{<fg>[,<bg>]}` | `foo \c{green}bar\c baz`<br>`foo \c{cyan,red}bar\c baz` | foo <f style="color:green">bar</f> baz<br>foo <f style="background-color:red;color:cyan">bar</f> baz | **New in v4.3.0!** Toggles the foreground and/or background color of text using color names (see below). | ||
`\h<fg>[,<bg>]` | `foo \hea74dcbar\h baz`<br>`foo \h613583,2ec27ebar\h baz` | foo <f style="color:#ea74dc">bar</f> baz<br>foo <f style="background-color:#2ec27e;color:#613583">bar</f> baz | Toggles the foreground and/or background color of text using hex colors (not widely supported). | ||
`\i` | `foo \ibar\i baz` | foo <i>bar</i> baz | Toggles whether text should be italicised. | ||
`\m` | `foo \mbar\m baz` | foo <code style="color:#222">bar</code> baz | Toggles whether text should be monospace (not widely supported). | ||
`\r` | `foo \c{blue,orange}bar\r baz` | foo <f style="background-color:orange;color:blue">bar</f><f style="background-color:blue;color:orange"> baz</f> | Swaps the foreground and background color. | ||
`\s` | `foo \sbar\s baz` | foo <del>bar</del> baz | Toggles whether text should be struckthrough (not widely supported). | ||
`\u` | `foo \ubar\u baz` | foo <u>bar</u> baz | Toggles whether text should be underlined. | ||
`\x` | `foo \b\ibar\x baz` | foo <b><i>bar</i></b> baz | Terminates any previously specified formatting. | ||
|
||
If using named colors they are converted to raw color codes as follows: | ||
|
||
Code | Name | Example | ||
---- | ----------- | ------- | ||
00 | white | <div style="background-color:white;border:1px solid black;border:1px solid black"> </div> | ||
01 | black | <div style="background-color:black;border:1px solid black"> </div> | ||
02 | blue | <div style="background-color:blue;border:1px solid black"> </div> | ||
03 | green | <div style="background-color:green;border:1px solid black"> </div> | ||
04 | red | <div style="background-color:red;border:1px solid black"> </div> | ||
05 | brown | <div style="background-color:brown;border:1px solid black"> </div> | ||
06 | magenta | <div style="background-color:magenta;border:1px solid black"> </div> | ||
07 | orange | <div style="background-color:orange;border:1px solid black"> </div> | ||
08 | yellow | <div style="background-color:yellow;border:1px solid black"> </div> | ||
09 | light green | <div style="background-color:lightgreen;border:1px solid black"> </div> | ||
10 | cyan | <div style="background-color:cyan;border:1px solid black"> </div> | ||
11 | light cyan | <div style="background-color:lightcyan;;border:1px solid black"> </div> | ||
12 | light blue | <div style="background-color:lightblue;border:1px solid black"> </div> | ||
13 | pink | <div style="background-color:pink;border:1px solid black"> </div> | ||
14 | grey | <div style="background-color:grey;border:1px solid black"> </div> | ||
15 | light grey | <div style="background-color:lightgrey;border:1px solid black"> </div> | ||
99 | default | *Depends on client theme* | ||
|
||
Colors in the range 16-98 are not widely supported and do not have names. See [ircdocs](https://modern.ircdocs.horse/formatting) for more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters