summaryrefslogtreecommitdiff
path: root/modules/sql_authentication.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/sql_authentication.cpp')
-rw-r--r--modules/sql_authentication.cpp13
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);