InspIRCd v4 is still early in development!
If you use this branch you may experience crashes, weird behaviour, and unannounced breaking changes.
You probably want to use InspIRCd v3 instead.
The "chanhistory" Module (v4)
Description
This module adds channel mode H
(history) which allows message history to be viewed on joining the channel.
Configuration
To load this module use the following <module>
tag:
<module name="chanhistory">
<chanhistory>
The <chanhistory>
tag defines settings about how the chanhistory module should behave. This tag can only be defined once.
Name | Type | Default Value | Description |
---|---|---|---|
bots | Boolean | Yes | Whether users with the bot user mode (+B) will receive history. |
enableumode | Boolean | No | Whether user mode N (nohistory) is enabled. You must restart after changing this setting for it to be applied. |
maxduration | Duration | 4w | The maximum amount of time that a channel can keep history for. |
maxlines | Number | 50 | The maximum number of lines of history that a channel can keep. |
prefixmsg | Boolean | Yes | Whether to send a notice before sending history. |
Example Usage
<chanhistory bots="yes"
enableumode="yes"
maxduration="4w"
maxlines="50"
prefixmsg="yes">
Channel Modes
Name | Character | Type | Parameter Syntax | Usable By | Description |
---|---|---|---|---|---|
history | H | Parameter | <count>:<period> | Channel operators | Sends up to <count> messages from the last <period> on join. |
Example Usage
Replays up to 10 messages from the last 30 minutes:
/MODE #channel +H 10:1800
Replays up to 25 messages from the last two hours:
/MODE #channel +H 25:2h
User Modes
Name | Character | Type | Parameter Syntax | Usable By | Description |
---|---|---|---|---|---|
nohistory | N | Switch | None | Anyone | Disables receiving channel history on join. |