aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_permchannels.cpp
diff options
context:
space:
mode:
authorGravatar Peter Powell2014-03-07 15:47:52 +0000
committerGravatar Attila Molnar2014-03-07 18:28:01 +0100
commit9ccb36800a6512d9aaa0b429eca0b94d7caa0d33 (patch)
treec8b904473dba6e25fca88e178ec3c75839bbf033 /src/modules/m_permchannels.cpp
parentMove admin settings into core_info (diff)
downloadinspircd++-9ccb36800a6512d9aaa0b429eca0b94d7caa0d33.tar.gz
inspircd++-9ccb36800a6512d9aaa0b429eca0b94d7caa0d33.tar.bz2
inspircd++-9ccb36800a6512d9aaa0b429eca0b94d7caa0d33.zip
Fix m_permchannels not prepending the path when reading the config.
Diffstat (limited to 'src/modules/m_permchannels.cpp')
-rw-r--r--src/modules/m_permchannels.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/m_permchannels.cpp b/src/modules/m_permchannels.cpp
index edb752f67..0c73de7ba 100644
--- a/src/modules/m_permchannels.cpp
+++ b/src/modules/m_permchannels.cpp
@@ -205,6 +205,9 @@ public:
ConfigTag* tag = ServerInstance->Config->ConfValue("permchanneldb");
permchannelsconf = tag->getString("filename");
save_listmodes = tag->getBool("listmodes");
+
+ if (!permchannelsconf.empty())
+ permchannelsconf = ServerInstance->Config->Paths.PrependConfig(permchannelsconf);
}
void LoadDatabase()