From 96e0f18f7faf7bf590c311cd0b63725c64fb4800 Mon Sep 17 00:00:00 2001 From: Herman Date: Sat, 12 Jun 2021 07:59:13 +0300 Subject: Code refactor and minor fix (#1879) --- src/modules/m_permchannels.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_permchannels.cpp') diff --git a/src/modules/m_permchannels.cpp b/src/modules/m_permchannels.cpp index 35736bf71..ae2fd59ad 100644 --- a/src/modules/m_permchannels.cpp +++ b/src/modules/m_permchannels.cpp @@ -207,7 +207,6 @@ public: { ConfigTag* tag = i->second; std::string channel = tag->getString("channel"); - std::string modes = tag->getString("modes"); if (!ServerInstance->IsChannel(channel)) { @@ -237,6 +236,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; -- cgit v1.3.1-10-gc9f91