mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
Increase the config default for <chanhistory:maxlines> to 50.
This commit is contained in:
parent
45689d251a
commit
5c6352dd9a
@ -397,7 +397,7 @@
|
||||
# If notice is set to yes, joining users will get a NOTICE before playback
|
||||
# telling them about the following lines being the pre-join history.
|
||||
# If bots is set to yes, it will also send to users marked with +B
|
||||
#<chanhistory maxlines="20" notice="yes" bots="yes">
|
||||
#<chanhistory maxlines="50" notice="yes" bots="yes">
|
||||
|
||||
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
|
||||
# Channel logging module: Used to send snotice output to channels, to
|
||||
|
@ -116,7 +116,7 @@ class ModuleChanHistory : public Module
|
||||
void ReadConfig(ConfigStatus& status) CXX11_OVERRIDE
|
||||
{
|
||||
ConfigTag* tag = ServerInstance->Config->ConfValue("chanhistory");
|
||||
m.maxlines = tag->getInt("maxlines", 50);
|
||||
m.maxlines = tag->getInt("maxlines", 50, 1);
|
||||
sendnotice = tag->getBool("notice", true);
|
||||
dobots = tag->getBool("bots", true);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user