From 4e0997924d4052dede401fa1c0a1a91ae81c9aa3 Mon Sep 17 00:00:00 2001 From: danieldg Date: Sat, 6 Mar 2010 19:23:44 +0000 Subject: Add column names to SQLv3, allow sqloper to specify its own query string git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12606 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_sqlauth.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/modules/m_sqlauth.cpp') diff --git a/src/modules/m_sqlauth.cpp b/src/modules/m_sqlauth.cpp index 1494a5634..c7c6c61a6 100644 --- a/src/modules/m_sqlauth.cpp +++ b/src/modules/m_sqlauth.cpp @@ -113,16 +113,9 @@ class ModuleSQLAuth : public Module pendingExt.set(user, AUTH_STATE_BUSY); - std::string thisquery = freeformquery; ParamM userinfo; - userinfo["nick"] = user->nick; + SQL->PopulateUserInfo(user, userinfo); userinfo["pass"] = user->password; - userinfo["host"] = user->host; - userinfo["ip"] = user->GetIPString(); - userinfo["gecos"] = user->fullname; - userinfo["ident"] = user->ident; - userinfo["server"] = user->server; - userinfo["uuid"] = user->uuid; HashProvider* md5 = ServerInstance->Modules->FindDataService("hash/md5"); if (md5) -- cgit v1.2.3