Fix for compiler warning

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4263 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
brain 2006-07-10 02:45:07 +00:00
parent b285ef3229
commit c307344610

View File

@ -294,6 +294,7 @@ Module* Server::FindFeature(const std::string &FeatureName)
const std::string& Server::GetModuleName(Module* m)
{
static std::string nothing = ""; /* Prevent compiler warning */
for (int i = 0; i <= MODCOUNT; i++)
{
if (modules[i] == m)
@ -301,7 +302,7 @@ const std::string& Server::GetModuleName(Module* m)
return Config->module_names[i];
}
}
return "";
return nothing; /* As above */
}
void Server::RehashServer()