diff options
author | Peter Powell <petpow@saberuk.com> | 2017-04-14 15:40:24 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2017-04-24 13:44:26 +0100 |
commit | 5c6143a56378cdd7f4e342fa815a038f4c2fa6af (patch) | |
tree | bbc680a8633321f3c9bfa85e1fa68b3a67fa0d9f /src | |
parent | 41ef94bebb0fcb358150ff0179c6c55104827683 (diff) |
Warn when a user configures a permanent channel without +P.
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_permchannels.cpp | 6 |
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; |