summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2020-01-03 22:35:25 +0000
committerSadie Powell <sadie@witchery.services>2020-01-03 22:35:53 +0000
commit6bd4024fd2e93fb740329560356500ce149692b3 (patch)
tree081c3d85efb884ad759159945051b88e6271178d /src
parent7a2462b891ba055cbedbf4d94ea3d5af50afa97c (diff)
Rename <chanhistory:notice> to <chanhistory:prefixmsg>.
This name is a lot lessambiguous.
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_chanhistory.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_chanhistory.cpp b/src/modules/m_chanhistory.cpp
index cfe2a6916..c9a4286de 100644
--- a/src/modules/m_chanhistory.cpp
+++ b/src/modules/m_chanhistory.cpp
@@ -124,7 +124,7 @@ class ModuleChanHistory
{
private:
HistoryMode m;
- bool sendnotice;
+ bool prefixmsg;
UserModeReference botmode;
bool dobots;
IRCv3::Batch::CapReference batchcap;
@@ -191,7 +191,7 @@ class ModuleChanHistory
{
ConfigTag* tag = ServerInstance->Config->ConfValue("chanhistory");
m.maxlines = tag->getUInt("maxlines", 50, 1);
- sendnotice = tag->getBool("notice", true);
+ prefixmsg = tag->getBool("prefixmsg", tag->getBool("notice", true));
dobots = tag->getBool("bots", true);
}
@@ -228,11 +228,11 @@ class ModuleChanHistory
if (!list)
return;
- if ((sendnotice) && (!batchcap.get(localuser)))
+ if ((prefixmsg) && (!batchcap.get(localuser)))
{
std::string message("Replaying up to " + ConvToStr(list->maxlen) + " lines of pre-join history");
if (list->maxtime > 0)
- message.append(" spanning up to " + InspIRCd::DurationString(list->maxtime));
+ message.append(" from the last " + InspIRCd::DurationString(list->maxtime));
memb->WriteNotice(message);
}