mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
Fix m_permchannels not prepending the path when reading the config.
This commit is contained in:
parent
b15cffc167
commit
9ccb36800a
@ -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.
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user