X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/5985f3c811497f87ac58b64695b6d28879f07c65..186fb2b18b89a0280b8cc4b5ea8f7a59d3bd0853:/projects/sgconf/users.cpp?ds=sidebyside diff --git a/projects/sgconf/users.cpp b/projects/sgconf/users.cpp index 61d36736..3958869c 100644 --- a/projects/sgconf/users.cpp +++ b/projects/sgconf/users.cpp @@ -57,6 +57,12 @@ for (size_t i = 0; i < DIR_NUM; ++i) std::cout << Indent(level) << "user data:\n"; for (size_t i = 0; i < USERDATA_NUM; ++i) std::cout << Indent(level + 1, true) << "user data " << i << ": " << info.userData[i] << "\n"; +if (!info.authBy.empty()) + { + std::cout << Indent(level) << "auth by:\n"; + for (size_t i = 0; i < info.authBy.size(); ++i) + std::cout << Indent(level + 1, true) << info.authBy[i] << "\n"; + } } void SimpleCallback(bool result, @@ -135,8 +141,8 @@ return proto.DelUser(arg, SimpleCallback, NULL) == STG::st_ok; } bool SGCONF::AddUserFunction(const SGCONF::CONFIG & config, - const std::string & arg, - const std::map & /*options*/) + const std::string & arg, + const std::map & /*options*/) { // TODO std::cerr << "Unimplemented.\n"; @@ -144,6 +150,15 @@ return false; } bool SGCONF::ChgUserFunction(const SGCONF::CONFIG & config, + const std::string & arg, + const std::map & options) +{ +// TODO +std::cerr << "Unimplemented.\n"; +return false; +} + +bool SGCONF::CheckUserFunction(const SGCONF::CONFIG & config, const std::string & arg, const std::map & options) { @@ -151,3 +166,12 @@ bool SGCONF::ChgUserFunction(const SGCONF::CONFIG & config, std::cerr << "Unimplemented.\n"; return false; } + +bool SGCONF::SendMessageFunction(const SGCONF::CONFIG & config, + const std::string & arg, + const std::map & options) +{ +// TODO +std::cerr << "Unimplemented.\n"; +return false; +}