diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-01-22 20:44:10 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-01-22 20:44:10 +0000 |
commit | 9bb31e58f8dfebd3c7297e738886f94c7bb3196b (patch) | |
tree | d8659d7026d981464a7b759343fe71bc7e2e2d25 /src/modules/extra | |
parent | 436fad2bf0fb122470a47a1453fa24b446104a8f (diff) |
Add $gecos, $ident, $server, $uuid vars for building possible auth queries. These are the 1.2 equivalent of sqlauth:useident, and more.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10987 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/extra')
-rw-r--r-- | src/modules/extra/m_sqlauth.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/extra/m_sqlauth.cpp b/src/modules/extra/m_sqlauth.cpp index 53e140e05..0cd1ced24 100644 --- a/src/modules/extra/m_sqlauth.cpp +++ b/src/modules/extra/m_sqlauth.cpp @@ -110,6 +110,10 @@ public: SearchAndReplace(thisquery, "$pass", safepass); SearchAndReplace(thisquery, "$host", user->host); SearchAndReplace(thisquery, "$ip", user->GetIPString()); + SearchAndReplace(thisquery, "$gecos", user->fullname); + SearchAndReplace(thisquery, "$ident", user->ident); + SearchAndReplace(thisquery, "$server", user->server); + SearchAndReplace(thisquery, "$uuid", user->uuid); Module* HashMod = ServerInstance->Modules->Find("m_md5.so"); |