summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2017-05-17 23:47:27 +0200
committerGitHub <noreply@github.com>2017-05-17 23:47:27 +0200
commitf24239657e749d7d03f9dbafa4128c5720910153 (patch)
tree2709fdc24e0fb7a48d2e38df2f6e9a679e149f0f /src
parentad8625919378ffbdbf0993d56e16a75a47c4715e (diff)
parent5c6143a56378cdd7f4e342fa815a038f4c2fa6af (diff)
Merge pull request #1321 from SaberUK/insp20+permwarn
[2.0] Warn when a user configures a permanent channel without +P.
Diffstat (limited to 'src')
-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;