1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 06:56:39 +02:00

Pretty large coding style cleanup, in source doc

cleanup, and allow protocol mods to depend on each
other
This commit is contained in:
Adam
2012-11-22 00:50:33 -05:00
parent 368d469631
commit d33a0f75a5
303 changed files with 7880 additions and 9388 deletions
+9 -2
View File
@@ -76,6 +76,13 @@ class CommandOSModReLoad : public Command
return;
}
Module *protocol = ModuleManager::FindFirstOf(PROTOCOL);
if (m->type == PROTOCOL && m != protocol)
{
source.Reply(_("You may not reload this module directly, instead reload %s."), protocol ? protocol->name.c_str() : "(unknown)");
return;
}
/* Unrecoverable */
bool fatal = m->type == PROTOCOL;
ModuleReturn status = ModuleManager::UnloadModule(m, source.GetUser());
@@ -96,8 +103,8 @@ class CommandOSModReLoad : public Command
{
if (fatal)
{
quitmsg = "Unable to reload module " + mname;
quitting = true;
Anope::QuitReason = "Unable to reload module " + mname;
Anope::Quitting = true;
}
else
source.Reply(_("Unable to load module \002%s\002"), mname.c_str());