]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/modules/sql.h
Replace most usages of "GECOS" with "real" or "real name".
[user/henk/code/inspircd.git] / include / modules / sql.h
index 14cd60a5625012bb87c714a69d5a0c57292eef11..1f5bb7ff3f7cb469e79f6d3950d18666c1999622 100644 (file)
@@ -122,6 +122,15 @@ class SQL::Result : public classbase
         * @param result A reference to the vector to store column names in.
         */
        virtual void GetCols(std::vector<std::string>& result) = 0;
+
+       /**
+        * Check if there's a column with the specified name in the result
+        *
+        * @param the column name
+        * @param on success, this is the column index
+        * @returns true, or false if the column is not found
+        */
+       virtual bool HasColumn(const std::string& column, size_t& index) = 0;
 };
 
 /** SQL::Error holds the error state of a request.
@@ -251,7 +260,7 @@ inline void SQL::PopulateUserInfo(User* user, ParamMap& userinfo)
        userinfo["nick"] = user->nick;
        userinfo["host"] = user->GetRealHost();
        userinfo["ip"] = user->GetIPString();
-       userinfo["gecos"] = user->fullname;
+       userinfo["real"] = user->fullname;
        userinfo["ident"] = user->ident;
        userinfo["server"] = user->server->GetName();
        userinfo["uuid"] = user->uuid;