summaryrefslogtreecommitdiff
path: root/modules/operserv/module.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2016-10-22 16:43:18 -0400
committerAdam <Adam@anope.org>2016-10-22 16:52:29 -0400
commitfce6169f4e134a99dbb19997337b1bb250889147 (patch)
treeb6f2f6c1bc7094a32b5dc6bb1df97fc4b675e9e0 /modules/operserv/module.cpp
parent06f40cabcb167e2764c03092f6ec3f7383983f95 (diff)
Various codestyle cleanup in most of the core modules
Diffstat (limited to 'modules/operserv/module.cpp')
-rw-r--r--modules/operserv/module.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/modules/operserv/module.cpp b/modules/operserv/module.cpp
index 88d1def03..1e4e0bac5 100644
--- a/modules/operserv/module.cpp
+++ b/modules/operserv/module.cpp
@@ -39,9 +39,13 @@ class CommandOSModLoad : public Command
source.Reply(_("Module \002{0}\002 loaded."), mname);
}
else if (status == MOD_ERR_EXISTS)
+ {
source.Reply(_("Module \002{0}\002 is already loaded."), mname);
+ }
else
+ {
source.Reply(_("Unable to load module \002{0}\002."), mname);
+ }
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand) override
@@ -108,7 +112,9 @@ class CommandOSModReLoad : public Command
Anope::Quitting = true;
}
else
+ {
source.Reply(_("Unable to load module \002{0}\002."), mname);
+ }
}
}
@@ -155,9 +161,9 @@ class CommandOSModUnLoad : public Command
source.Reply(_("Module \002{0}\002 unloaded."), mname);
}
else
+ {
source.Reply(_("Unable to remove module \002{0}\002."), mname);
-
- return;
+ }
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand) override