summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2021-11-30 10:54:10 +0000
committerSadie Powell <sadie@witchery.services>2021-11-30 11:04:19 +0000
commit754c82d047b80c30ff2f775d32e8b9b054049ebd (patch)
treeeb1abbc79af82320c34805c8282914609476a973 /include
parent17fa704278a99aeac4e59df1bf58e63d88357788 (diff)
Remove undefined behaviour around checking if this is null.
Diffstat (limited to 'include')
-rw-r--r--include/config.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/config.h b/include/config.h
index d8ef07695..82c1ad5c8 100644
--- a/include/config.h
+++ b/include/config.h
@@ -60,7 +60,7 @@ namespace Configuration
}
bool Set(const Anope::string &tag, const Anope::string &value);
- const item_map* GetItems() const;
+ const item_map &GetItems() const;
};
template<> CoreExport const Anope::string Block::Get(const Anope::string &tag, const Anope::string& def) const;
@@ -129,6 +129,9 @@ namespace Configuration
std::map<Anope::string, Block *> modules;
Anope::map<Anope::string> bots;
+ /* Represents a missing tag. */
+ Block EmptyBlock;
+
Conf();
~Conf();