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/chanserv/log.cpp | |
parent | 06f40cabcb167e2764c03092f6ec3f7383983f95 (diff) |
Various codestyle cleanup in most of the core modules
Diffstat (limited to 'modules/chanserv/log.cpp')
-rw-r--r-- | modules/chanserv/log.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/chanserv/log.cpp b/modules/chanserv/log.cpp index b20427bc0..32025e6b0 100644 --- a/modules/chanserv/log.cpp +++ b/modules/chanserv/log.cpp @@ -316,7 +316,9 @@ public: source.Reply(_("Logging is now active for command \002{0}\002 on \002{1}\002, using log method \002{2}{3}{4}\002."), !command_name.empty() ? command_name : service_name, bi ? bi->nick : "any service", method, extra.empty() ? "" : " ", extra); } else + { this->OnSyntaxError(source, ""); + } } bool OnHelp(CommandSource &source, const Anope::string &subcommand) override @@ -406,7 +408,9 @@ class CSLog : public Module log->SetCommandName(d.command); } else + { log->SetServiceName(d.command); + } spacesepstream sep(d.method); Anope::string method, extra; |