X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/9cd40c09380f9f681366abd51b4789869cb1dd23..a7b9b4dfbeb7d84f1c393f7197b017a1e65192b4:/stglibs/srvconf.lib/servconf.cpp?ds=inline diff --git a/stglibs/srvconf.lib/servconf.cpp b/stglibs/srvconf.lib/servconf.cpp index f8d737a0..d2241b0e 100644 --- a/stglibs/srvconf.lib/servconf.cpp +++ b/stglibs/srvconf.lib/servconf.cpp @@ -26,9 +26,9 @@ #include "parsers/get_admins.h" #include "parsers/get_admin.h" -/*#include "parsers/chg_admin.h" +#include "parsers/chg_admin.h" #include "parsers/add_admin.h" -#include "parsers/del_admin.h"*/ +#include "parsers/del_admin.h" #include "parsers/auth_by.h" #include "parsers/check_user.h" @@ -119,9 +119,9 @@ int SERVCONF::GetAdmin(const std::string & login, GET_ADMIN::CALLBACK f, void * return pImpl->Exec("", f, data); } -/*int SERVCONF::ChgAdmin(const std::string & login, const ADMIN_CONF_RES & conf, CHG_ADMIN::CALLBACK f, void * data) +int SERVCONF::ChgAdmin(const ADMIN_CONF_RES & conf, CHG_ADMIN::CALLBACK f, void * data) { -return pImpl->Exec("" + CHG_ADMIN::Serialize(conf) + "", f, data); +return pImpl->Exec("", f, data); } int SERVCONF::AddAdmin(const std::string & login, const ADMIN_CONF & conf, ADD_ADMIN::CALLBACK f, void * data) @@ -129,13 +129,13 @@ int SERVCONF::AddAdmin(const std::string & login, const ADMIN_CONF & conf, ADD_A int res = pImpl->Exec("", f, data); if (res != st_ok) return res; -return pImpl->Exec("" + CHG_ADMIN::Serialize(conf) + "", f, data); +return pImpl->Exec("", f, data); } int SERVCONF::DelAdmin(const std::string & login, DEL_ADMIN::CALLBACK f, void * data) { return pImpl->Exec("", f, data); -}*/ +} // -- Users --