diff options
author | Adam <Adam@anope.org> | 2014-12-05 17:27:08 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2014-12-05 17:27:08 -0500 |
commit | afffeb0a1d49c1ac8f06ac9850929a41a52cbc7e (patch) | |
tree | dc8bdbcc0ce4faf5b8e10bf071606d9870edf429 /src | |
parent | 4fc71bb22f77930885b11182ad34705d1160efc0 (diff) |
Update Kill() calls to pass source pointer instead of name
Diffstat (limited to 'src')
-rw-r--r-- | src/messages.cpp | 2 | ||||
-rw-r--r-- | src/users.cpp | 2 |
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> ¶ms) 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> ¶ms) 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; } |