Logging is easier now, assigned in runtime group is now stored in config
This commit is contained in:
parent
7f57cd3bf6
commit
1bda854139
19 changed files with 153 additions and 53 deletions
|
@ -7,7 +7,8 @@
|
|||
|
||||
#include "gloox/message.h"
|
||||
|
||||
Module::Module::Module(const std::shared_ptr<Core>& core, const Shared::Permissions& permissions):
|
||||
Module::Module::Module(const std::shared_ptr<Core>& core, const Shared::Permissions& permissions, const std::string& name):
|
||||
Shared::Loggable(core->logger, {"Module", name}),
|
||||
core(core),
|
||||
permissions(permissions)
|
||||
{}
|
||||
|
@ -36,3 +37,7 @@ std::vector<std::string> Module::Module::split(const std::string& string, const
|
|||
|
||||
return result;
|
||||
}
|
||||
|
||||
std::string Module::Module::lower(const std::string& text) {
|
||||
return std::ranges::to<std::string>(text | std::views::transform(::tolower));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue