A bit better module config
This commit is contained in:
parent
647b8f3072
commit
98bfab4ba5
13 changed files with 67 additions and 45 deletions
module
|
@ -7,10 +7,12 @@
|
|||
|
||||
#include "gloox/message.h"
|
||||
|
||||
Module::Module::Module(const std::shared_ptr<Core>& core, const Shared::Permissions& permissions, const std::string& name):
|
||||
Shared::Loggable(core->logger, {"Module", name}),
|
||||
Module::Module::Module(const std::shared_ptr<Core>& core, const Config::Module& conf, const std::string& name):
|
||||
Shared::Loggable(core->logger, {"Module", name, conf.alias}),
|
||||
name(name),
|
||||
alias(conf.alias),
|
||||
core(core),
|
||||
permissions(permissions)
|
||||
permissions(conf.permissions)
|
||||
{}
|
||||
|
||||
bool Module::Module::hasPermission(const std::string& permission, const std::shared_ptr<::Actor>& actor) const {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue