From 6bd31b033323842b9d59411f7f99e92c8ec6803e Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 8 Sep 2011 19:00:30 -0400 Subject: Bug #1330 & many other small fixes --- modules/commands/bs_kick.cpp | 2 +- modules/commands/cs_suspend.cpp | 2 +- modules/commands/ns_register.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/commands') 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::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(u->nick)); if (!reason.empty()) - ci->Extend("suspend_reason", new ExtensibleItemRegular(u->nick)); + ci->Extend("suspend_reason", new ExtensibleItemRegular(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); } }; -- cgit