- std::string motd_name = tag->getString("motd", "motd");
- ConfigFileCache::iterator motd = ServerInstance->Config->Files.find(motd_name);
- if (motd == ServerInstance->Config->Files.end())
+
+ const std::string motd_name = tag->getString("motd", "motd", 1);
+ ConfigFileCache::iterator motd = motds.find(motd_name);
+ if (motd == motds.end())