diff options
author | Sadie Powell <sadie@witchery.services> | 2025-02-20 19:49:01 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2025-02-20 19:49:01 +0000 |
commit | 0c193f8149a0af210383a1798586075d132e4904 (patch) | |
tree | 7b4f2479516ed6e2e88d8f9c25228b39b4088d0c /modules/sql_authentication.cpp | |
parent | fa0f78b937a970049623d11361d106cf2f12cedd (diff) |
Store the source address in the identify request.
Diffstat (limited to 'modules/sql_authentication.cpp')
-rw-r--r-- | modules/sql_authentication.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/modules/sql_authentication.cpp b/modules/sql_authentication.cpp index 9a6e76d05..a7044119a 100644 --- a/modules/sql_authentication.cpp +++ b/modules/sql_authentication.cpp @@ -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); |