summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2017-04-14 15:40:24 +0100
committerPeter Powell <petpow@saberuk.com>2017-04-24 13:44:26 +0100
commit5c6143a56378cdd7f4e342fa815a038f4c2fa6af (patch)
treebbc680a8633321f3c9bfa85e1fa68b3a67fa0d9f
parent41ef94bebb0fcb358150ff0179c6c55104827683 (diff)
Warn when a user configures a permanent channel without +P.
-rw-r--r--src/modules/m_permchannels.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/modules/m_permchannels.cpp b/src/modules/m_permchannels.cpp
index e86b3cbf6..74a798356 100644
--- a/src/modules/m_permchannels.cpp
+++ b/src/modules/m_permchannels.cpp
@@ -298,6 +298,12 @@ public:
ServerInstance->Logs->Log("m_permchannels", DEBUG, "Added %s with topic %s", channel.c_str(), topic.c_str());
+ if (modes.find('P') == std::string::npos)
+ {
+ ServerInstance->Logs->Log("m_permchannels", DEFAULT, "%s (%s) does not have +P set in <permchannels:modes>; it will be deleted when empty!",
+ c->name.c_str(), tag->getTagLocation().c_str());
+ }
+
if (modes.empty())
continue;