mirror of
https://github.com/anope/anope.git
synced 2026-06-26 18:36:39 +02:00
Return references instead of pointers from the config system.
We used to return NULL from these methods but now we return an empty block so this can never actually be null now.
This commit is contained in:
+1
-1
@@ -36,7 +36,7 @@ void Language::InitLanguages()
|
||||
|
||||
setlocale(LC_ALL, "");
|
||||
|
||||
spacesepstream sep(Config->GetBlock("options")->Get<const Anope::string>("languages"));
|
||||
spacesepstream sep(Config->GetBlock("options").Get<const Anope::string>("languages"));
|
||||
Anope::string language;
|
||||
while (sep.GetToken(language))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user