init(git): Base commit

This commit is contained in:
Michael Carlberg
2016-05-19 16:41:06 +02:00
commit eeefb3c610
107 changed files with 11464 additions and 0 deletions

17
src/modules/base.cpp Normal file
View File

@ -0,0 +1,17 @@
#include "lemonbuddy.hpp"
#include "registry.hpp"
#include "modules/base.hpp"
#include "utils/config.hpp"
#include "utils/string.hpp"
namespace modules
{
void broadcast_module_update(const std::string& module_name) {
log_trace("Broadcasting module update for => "+ module_name);
get_registry()->notify(module_name);
}
std::string get_tag_name(const std::string& tag) {
return tag.length() < 2 ? "" : tag.substr(1, tag.length()-2);
}
}