diff options
| author | 2021-06-13 14:46:41 +0100 | |
|---|---|---|
| committer | 2021-06-13 14:46:41 +0100 | |
| commit | 7fa0672ebde614218a18600686370ac234e67bf0 (patch) | |
| tree | fd8933975ec00af7373b890d0171f7350fab6f83 /src/modules/m_permchannels.cpp | |
| parent | Fix undefined behaviour with converting a path to a string. (diff) | |
| parent | Point to the license on the docs site not to the GNU website. (diff) | |
Merge branch 'insp3' into master.
Diffstat (limited to 'src/modules/m_permchannels.cpp')
| -rw-r--r-- | src/modules/m_permchannels.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_permchannels.cpp b/src/modules/m_permchannels.cpp index dc3fbd0d1..546abcc87 100644 --- a/src/modules/m_permchannels.cpp +++ b/src/modules/m_permchannels.cpp @@ -199,7 +199,6 @@ public: for (const auto& [_, tag] : ServerInstance->Config->ConfTags("permchannels")) { std::string channel = tag->getString("channel"); - std::string modes = tag->getString("modes"); if (!ServerInstance->Channels.IsChannel(channel)) { @@ -228,6 +227,7 @@ public: ServerInstance->Logs.Log(MODNAME, LOG_DEBUG, "Added %s with topic %s", channel.c_str(), c->topic.c_str()); + std::string modes = tag->getString("modes"); if (modes.empty()) continue; |
