diff options
author | Adam <Adam@anope.org> | 2016-10-22 16:43:18 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2016-10-22 16:52:29 -0400 |
commit | fce6169f4e134a99dbb19997337b1bb250889147 (patch) | |
tree | b6f2f6c1bc7094a32b5dc6bb1df97fc4b675e9e0 /modules/operserv/oper.cpp | |
parent | 06f40cabcb167e2764c03092f6ec3f7383983f95 (diff) |
Various codestyle cleanup in most of the core modules
Diffstat (limited to 'modules/operserv/oper.cpp')
-rw-r--r-- | modules/operserv/oper.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/operserv/oper.cpp b/modules/operserv/oper.cpp index 40880d8fc..34fcb1abc 100644 --- a/modules/operserv/oper.cpp +++ b/modules/operserv/oper.cpp @@ -185,7 +185,9 @@ class CommandOSOper : public Command } if (ot->GetCommands().empty()) + { source.Reply(_("Opertype \002{0}\002 has no allowed commands."), ot->GetName()); + } else { source.Reply(_("Available commands for \002{0}\002:"), ot->GetName()); @@ -206,8 +208,11 @@ class CommandOSOper : public Command buf.clear(); } } + if (ot->GetPrivs().empty()) + { source.Reply(_("Opertype \002{0}\002 has no allowed privileges."), ot->GetName()); + } else { source.Reply(_("Available privileges for \002{0}\002:"), ot->GetName()); @@ -228,11 +233,14 @@ class CommandOSOper : public Command buf.clear(); } } + if (!ot->modes.empty()) source.Reply(_("Opertype \002{0}\002 receives modes \002{1}\002 once identified."), ot->GetName(), ot->modes); } else + { this->OnSyntaxError(source, subcommand); + } } bool OnHelp(CommandSource &source, const Anope::string &subcommand) override |