summaryrefslogtreecommitdiff
path: root/modules/commands
diff options
context:
space:
mode:
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);
}
};