1
0
mirror of https://github.com/anope/anope.git synced 2026-07-06 21:03:13 +02:00

Store the source address in the identify request.

This commit is contained in:
Sadie Powell
2025-02-20 19:49:01 +00:00
parent fa0f78b937
commit 0c193f8149
9 changed files with 53 additions and 24 deletions
+2 -11
View File
@@ -128,18 +128,9 @@ public:
SQL::Query q(this->query);
q.SetValue("a", req->GetAccount());
q.SetValue("i", req->GetAddress().str());
q.SetValue("n", u ? u->nick : "");
q.SetValue("p", req->GetPassword());
if (u)
{
q.SetValue("n", u->nick);
q.SetValue("i", u->ip.addr());
}
else
{
q.SetValue("n", "");
q.SetValue("i", "");
}
this->SQL->Run(new SQLAuthenticationResult(u, req), q);