diff options
author | Attila Molnar <attilamolnar@hush.com> | 2016-02-24 12:40:05 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2016-02-24 12:40:05 +0100 |
commit | 55e5e41fb9e9983c72f144fb4f59684d2125e129 (patch) | |
tree | 3ef7d433b428372e11024bc9227025258971abfa | |
parent | 0b63ccd0b5cb26883d6becb196fb98e4f95d0397 (diff) |
Fix some numerics
-rw-r--r-- | src/coremods/core_channel/cmd_kick.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_samode.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_sasl.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/coremods/core_channel/cmd_kick.cpp b/src/coremods/core_channel/cmd_kick.cpp index e2fdd7877..44f511bc1 100644 --- a/src/coremods/core_channel/cmd_kick.cpp +++ b/src/coremods/core_channel/cmd_kick.cpp @@ -111,7 +111,7 @@ CmdResult CommandKick::Handle (const std::vector<std::string>& parameters, User if (them < req) { user->WriteNumeric(ERR_CHANOPRIVSNEEDED, "%s :You must be a channel %soperator", - this->name.c_str(), req > HALFOP_VALUE ? "" : "half-"); + c->name.c_str(), req > HALFOP_VALUE ? "" : "half-"); return CMD_FAILURE; } } diff --git a/src/modules/m_samode.cpp b/src/modules/m_samode.cpp index 689189229..8b06118ee 100644 --- a/src/modules/m_samode.cpp +++ b/src/modules/m_samode.cpp @@ -42,7 +42,7 @@ class CommandSamode : public Command User* target = ServerInstance->FindNickOnly(parameters[0]); if ((!target) || (target->registered != REG_ALL)) { - user->WriteNumeric(ERR_NOSUCHNICK, "%s %s :No such nick/channel", user->nick.c_str(), parameters[0].c_str()); + user->WriteNumeric(ERR_NOSUCHNICK, "%s :No such nick/channel", parameters[0].c_str()); return CMD_FAILURE; } diff --git a/src/modules/m_sasl.cpp b/src/modules/m_sasl.cpp index d7c97c835..6e3086930 100644 --- a/src/modules/m_sasl.cpp +++ b/src/modules/m_sasl.cpp @@ -142,7 +142,7 @@ class SaslAuthenticator this->result = this->GetSaslResult(msg[3]); } else if (msg[2] == "M") - this->user->WriteNumeric(908, "%s %s :are available SASL mechanisms", this->user->nick.c_str(), msg[3].c_str()); + this->user->WriteNumeric(908, "%s :are available SASL mechanisms", msg[3].c_str()); else ServerInstance->Logs->Log(MODNAME, LOG_DEFAULT, "Services sent an unknown SASL message \"%s\" \"%s\"", msg[2].c_str(), msg[3].c_str()); |