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 |
---|---|---|---|
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. |
bots (4.0.0 to 4.3.0) sendtobots (since 4.4.0) | Boolean | Yes | Whether users with the bot user mode (+B) will receive history. |
savefrombots | Boolean | Yes | New in v4.4.0! Whether messages from users with the bot user mode (+B) will be saved in the history. |
Example Usage
<chanhistory maxduration="4w"
maxlines="50"
prefixmsg="yes"
savefrombots="yes"
sendtobots="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. |