diff options
| author | 2024-09-22 13:48:56 +0100 | |
|---|---|---|
| committer | 2024-09-22 14:01:11 +0100 | |
| commit | 2b10b8fc2af9e87248230b83f4afd89300095e4c (patch) | |
| tree | a3971df84e1e95a3f417764bfdf3c891b8ca6e42 /src/modules | |
| parent | Merge branch 'insp3' into insp4. (diff) | |
Rename <chanhistory:bots> to <chanhistory:sendtobots>.
Diffstat (limited to 'src/modules')
| -rw-r--r-- | src/modules/m_chanhistory.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_chanhistory.cpp b/src/modules/m_chanhistory.cpp index 1d6833dd2..080e202f3 100644 --- a/src/modules/m_chanhistory.cpp +++ b/src/modules/m_chanhistory.cpp @@ -166,14 +166,14 @@ class ModuleChanHistory final private: HistoryMode historymode; SimpleUserMode nohistorymode; - bool prefixmsg; UserModeReference botmode; - bool dobots; IRCv3::Batch::CapReference batchcap; IRCv3::Batch::API batchmanager; IRCv3::Batch::Batch batch; IRCv3::ServerTime::API servertimemanager; ClientProtocol::MessageTagEvent tagevent; + bool prefixmsg; + bool sendtobots; void AddTag(ClientProtocol::Message& msg, const std::string& tagkey, std::string& tagval) { @@ -232,7 +232,7 @@ public: historymode.maxduration = tag->getDuration("maxduration", 60*60*24*28); historymode.maxlines = tag->getNum<unsigned long>("maxlines", 50); prefixmsg = tag->getBool("prefixmsg", true); - dobots = tag->getBool("bots", true); + sendtobots = tag->getBool("sendtobots", tag->getBool("bots", true)); } ModResult OnRouteMessage(const Channel* channel, const Server* server) override @@ -264,7 +264,7 @@ public: if (!localuser) return; - if (memb->user->IsModeSet(botmode) && !dobots) + if (memb->user->IsModeSet(botmode) && !sendtobots) return; if (memb->user->IsModeSet(nohistorymode)) |
