return iter->second;
}
+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 Config->module_names[i];
+ }
+ }
+ return nothing; /* As above */
+}
+
void Server::RehashServer()
{
WriteOpers("*** Rehashing config file");
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);