refactor(modules): Input handling

This commit is contained in:
Michael Carlberg 2016-12-23 20:43:52 +01:00
parent 99764b930e
commit b422d1d1a4
23 changed files with 55 additions and 93 deletions
src/modules

View file

@ -316,9 +316,7 @@ namespace modules {
return true;
}
bool mpd_module::on(const input_event_t& evt) {
string cmd{*evt.data()};
bool mpd_module::input(string&& cmd) {
if (cmd.compare(0, 3, "mpd") != 0) {
return false;
}