Fix m_permchannels not prepending the path when reading the config.

This commit is contained in:
Peter Powell 2014-03-07 15:47:52 +00:00 committed by Attila Molnar
parent b15cffc167
commit 9ccb36800a
2 changed files with 5 additions and 2 deletions

View File

@ -1344,8 +1344,8 @@
#
# If 'listmodes' is true then all list modes (+b, +I, +e, +g...) will be
# saved. Defaults to false.
#<permchanneldb filename="data/permchannels.conf" listmodes="true">
#<include file="data/permchannels.conf">
#<permchanneldb filename="permchannels.conf" listmodes="true">
#<include file="permchannels.conf">
#
# You may also create channels on startup by using the <permchannels> block.
# Don't forget to set them +P in the modes, or they won't stay permanent.

View File

@ -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()