mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 11:09:04 -04:00
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:
parent
b285ef3229
commit
c307344610
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user