summaryrefslogtreecommitdiff
path: root/modules/commands
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-09-08 19:00:30 -0400
committerAdam <Adam@anope.org>2011-09-08 19:00:30 -0400
commit6bd31b033323842b9d59411f7f99e92c8ec6803e (patch)
tree7a079183a13f639d84fc7e4a622390b4befe22b6 /modules/commands
parent7de1a7a6d1146cce4cdb218899cbe15b9cee32d8 (diff)
Bug #1330 & many other small fixes
Diffstat (limited to 'modules/commands')
-rw-r--r--modules/commands/bs_kick.cpp2
-rw-r--r--modules/commands/cs_suspend.cpp2
-rw-r--r--modules/commands/ns_register.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/modules/commands/bs_kick.cpp b/modules/commands/bs_kick.cpp
index ac0420dce..0612c7e40 100644
--- a/modules/commands/bs_kick.cpp
+++ b/modules/commands/bs_kick.cpp
@@ -642,7 +642,7 @@ class BanDataPurger : public CallBack
{
for (std::map<Anope::string, BanData>::iterator it2 = bandata.begin(), it2_end = bandata.end(); it2 != it2_end;)
{
- const Anope::string &user = it->first;
+ const Anope::string &user = it2->first;
BanData *bd = &it2->second;
++it2;
diff --git a/modules/commands/cs_suspend.cpp b/modules/commands/cs_suspend.cpp
index d59ffb44b..d1bd7b72a 100644
--- a/modules/commands/cs_suspend.cpp
+++ b/modules/commands/cs_suspend.cpp
@@ -47,7 +47,7 @@ class CommandCSSuspend : public Command
ci->SetFlag(CI_SUSPENDED);
ci->Extend("suspend_by", new ExtensibleItemRegular<Anope::string>(u->nick));
if (!reason.empty())
- ci->Extend("suspend_reason", new ExtensibleItemRegular<Anope::string>(u->nick));
+ ci->Extend("suspend_reason", new ExtensibleItemRegular<Anope::string>(reason));
if (ci->c)
{
diff --git a/modules/commands/ns_register.cpp b/modules/commands/ns_register.cpp
index 552551994..22668e042 100644
--- a/modules/commands/ns_register.cpp
+++ b/modules/commands/ns_register.cpp
@@ -299,7 +299,7 @@ class CommandNSResend : public Command
void OnServHelp(CommandSource &source)
{
if (Config->NSEmailReg)
- source.Reply(" %-14s %s", this->name.c_str(),_("Resend the registration passcode"));
+ Command::OnServHelp(source);
}
};