summaryrefslogtreecommitdiff
path: root/modules/commands/bs_info.cpp
diff options
context:
space:
mode:
authorRobby- <robby@chat.be>2013-09-30 20:40:42 +0200
committerAdam <Adam@anope.org>2013-10-05 00:33:02 -0400
commitba5a3f5f00609a5d82abd9e255dc93ee44d0e8f4 (patch)
tree4af9c6014a53eec8d218b40e958db73e7273861b /modules/commands/bs_info.cpp
parent7b6c08b53a3ee5339aeeebd04892d6c9a1de5465 (diff)
Don't explicitly reference services nicks.
os_forbid: If NickServ is available, have it send the forbid reason instead of OperServ.
Diffstat (limited to 'modules/commands/bs_info.cpp')
-rw-r--r--modules/commands/bs_info.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/modules/commands/bs_info.cpp b/modules/commands/bs_info.cpp
index 9cd01ebf0..f9f0dd4cc 100644
--- a/modules/commands/bs_info.cpp
+++ b/modules/commands/bs_info.cpp
@@ -39,8 +39,7 @@ class CommandBSInfo : public Command
public:
CommandBSInfo(Module *creator) : Command(creator, "botserv/info", 1, 1)
{
- this->SetDesc(_("Allows you to see BotServ information about a channel or a bot"));
- this->SetSyntax(_("{\037chan\037|\037nick\037}"));
+ this->SetSyntax(_("{\037channel\037 | \037nickname\037}"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
@@ -86,7 +85,7 @@ class CommandBSInfo : public Command
}
source.Reply(CHAN_INFO_HEADER, ci->name.c_str());
- info[_("Bot nick")] = ci->bi ? ci->bi->nick : "not assigned yet";
+ info[_("Bot nick")] = ci->bi ? ci->bi->nick : _("not assigned yet");
Anope::string enabled = Language::Translate(source.nc, _("Enabled"));
Anope::string disabled = Language::Translate(source.nc, _("Disabled"));
@@ -114,6 +113,11 @@ class CommandBSInfo : public Command
"time or number of channels it is on."), source.service->nick.c_str());
return true;
}
+
+ const Anope::string GetDesc(CommandSource &source) const anope_override
+ {
+ return Anope::printf(Language::Translate(source.GetAccount(), _("Allows you to see %s information about a channel or a bot")), source.service->nick.c_str());
+ }
};
class BSInfo : public Module