summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/messages.cpp2
-rw-r--r--src/users.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/messages.cpp b/src/messages.cpp
index 1c48c6288..d40b11188 100644
--- a/src/messages.cpp
+++ b/src/messages.cpp
@@ -203,7 +203,7 @@ void Kill::Run(MessageSource &source, const std::vector<Anope::string> &params)
bi->OnKill();
}
else
- u->KillInternal(source.GetSource(), params[1]);
+ u->KillInternal(source, params[1]);
}
void Message::Mode::Run(MessageSource &source, const std::vector<Anope::string> &params)
diff --git a/src/users.cpp b/src/users.cpp
index 2a04fca20..8ec13d8c0 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -805,7 +805,7 @@ bool User::BadPassword()
this->invalid_pw_time = Anope::CurTime;
if (this->invalid_pw_count >= Config->GetBlock("options")->Get<int>("badpasslimit"))
{
- this->Kill(Me->GetName(), "Too many invalid passwords");
+ this->Kill(Me, "Too many invalid passwords");
return true;
}