From 46bb2de866eee5f75db7ae6beb36f6e2fbe69df2 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 20 Dec 2013 02:28:35 -0500 Subject: [PATCH] Document hs reject's reason --- modules/commands/hs_request.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/commands/hs_request.cpp b/modules/commands/hs_request.cpp index 2e503b0d7..36ded8cc9 100644 --- a/modules/commands/hs_request.cpp +++ b/modules/commands/hs_request.cpp @@ -233,7 +233,7 @@ class CommandHSReject : public Command CommandHSReject(Module *creator) : Command(creator, "hostserv/reject", 1, 2) { this->SetDesc(_("Reject the requested vHost of a user")); - this->SetSyntax(_("\037nick\037")); + this->SetSyntax(_("\037nick\037 [\037reason\037]")); } void Execute(CommandSource &source, const std::vector ¶ms) anope_override @@ -265,7 +265,7 @@ class CommandHSReject : public Command } source.Reply(_("vHost for %s has been rejected."), nick.c_str()); - Log(LOG_COMMAND, source, this, NULL) << "to reject vhost for " << nick << " (" << (!reason.empty() ? reason : "") << ")"; + Log(LOG_COMMAND, source, this) << "to reject vhost for " << nick << " (" << (!reason.empty() ? reason : "no reason") << ")"; } else source.Reply(_("No request for nick %s found."), nick.c_str()); @@ -277,7 +277,7 @@ class CommandHSReject : public Command source.Reply(" "); source.Reply(_("Reject the requested vHost for the given nick.")); if (Config->GetModule(this->owner)->Get("memouser")) - source.Reply(_("A memo informing the user will also be sent.")); + source.Reply(_("A memo informing the user will also be sent, which includes the reason for the rejection if supplied.")); return true; }