mirror of
https://github.com/anope/anope.git
synced 2026-06-26 21:56:38 +02:00
Use paths relative to data/conf in the config file.
This was done in some places already but not consistently. Closes #349.
This commit is contained in:
+4
-1
@@ -810,8 +810,11 @@ void Anope::UpdateTime()
|
||||
#endif
|
||||
}
|
||||
|
||||
Anope::string Anope::Expand(const Anope::string& base, const Anope::string& fragment)
|
||||
Anope::string Anope::Expand(const Anope::string &base, const Anope::string &fragment)
|
||||
{
|
||||
if (fragment.empty())
|
||||
return ""; // We can't expand an empty fragment.
|
||||
|
||||
// The fragment is an absolute path, don't modify it.
|
||||
if (std::filesystem::path(fragment.str()).is_absolute())
|
||||
return fragment;
|
||||
|
||||
Reference in New Issue
Block a user