return iter->second;
}
-const char* Server::GetModuleName(Module* m)
+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)
{
- return module_names[i];
+ return Config->module_names[i];
}
}
- return "";
+ return nothing; /* As above */
}
void Server::RehashServer()
return ServerInstance->ModeGrok->AddMode(mh,mode);
}
+bool Server::AddModeWatcher(ModeWatcher* mw)
+{
+ return ServerInstance->ModeGrok->AddModeWatcher(mw);
+}
+
+bool Server::DelModeWatcher(ModeWatcher* mw)
+{
+ return ServerInstance->ModeGrok->DelModeWatcher(mw);
+}
+
int Server::CountUsers(chanrec* c)
{
return usercount(c);