X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/84c7cad404a6073453edcb2045a57642d5744811..fc06430b05b154e0e859c6a436c1ffd74576a189:/stglibs/srvconf.lib/servconf.cpp?ds=inline diff --git a/stglibs/srvconf.lib/servconf.cpp b/stglibs/srvconf.lib/servconf.cpp index e8e07e10..950669f2 100644 --- a/stglibs/srvconf.lib/servconf.cpp +++ b/stglibs/srvconf.lib/servconf.cpp @@ -126,7 +126,7 @@ return pImpl->Exec("", f, int SERVCONF::ChgAdmin(const ADMIN_CONF_RES & conf, SIMPLE::CALLBACK f, void * data) { -return pImpl->Exec("", f, data); +return pImpl->Exec("ChgAdmin", "", f, data); } int SERVCONF::AddAdmin(const std::string & login, const ADMIN_CONF & conf, SIMPLE::CALLBACK f, void * data) @@ -134,7 +134,7 @@ int SERVCONF::AddAdmin(const std::string & login, const ADMIN_CONF & conf, SIMPL int res = pImpl->Exec("AddAdmin", "", f, data); if (res != st_ok) return res; -return pImpl->Exec("", f, data); +return pImpl->Exec("ChgAdmin", "", f, data); } int SERVCONF::DelAdmin(const std::string & login, SIMPLE::CALLBACK f, void * data) @@ -159,14 +159,24 @@ int SERVCONF::ChgUser(const std::string & request, SIMPLE::CALLBACK f, void * da return pImpl->Exec(request, f, data); } +int SERVCONF::DelUser(const std::string & login, SIMPLE::CALLBACK f, void * data) +{ +return pImpl->Exec("DelUser", "", f, data); +} + +int SERVCONF::AddUser(const std::string & login, SIMPLE::CALLBACK f, void * data) +{ +return pImpl->Exec("AddUser", "", f, data); +} + int SERVCONF::AuthBy(const std::string & login, AUTH_BY::CALLBACK f, void * data) { return pImpl->Exec("", f, data); } -int SERVCONF::SendMessage(const std::string & request, SIMPLE::CALLBACK f, void * data) +int SERVCONF::SendMessage(const std::string & login, const std::string & text, SIMPLE::CALLBACK f, void * data) { -return pImpl->Exec("SendMessage", request, f, data); +return pImpl->Exec("SendMessage", "", f, data); } int SERVCONF::CheckUser(const std::string & login, const std::string & password, SIMPLE::CALLBACK f, void * data)