Skip to content

Commit

Permalink
fix silent sporks
Browse files Browse the repository at this point in the history
  • Loading branch information
braindigitalis committed Dec 17, 2019
1 parent 0cc1303 commit 40ccdd2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,8 @@ void Bot::onMessage(aegis::gateway::events::message_create message) {
FOREACH_MOD(I_OnMessage,OnMessage(message, mentions_removed, mentioned, stringmentions));

if (Loader->IsEventClaimed()) {
core.log->info("Message was claimed by a module");
core.log->flush();
return;
}

Expand Down
4 changes: 2 additions & 2 deletions modules/js.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ JSModule::~JSModule()
std::string JSModule::GetVersion()
{
/* NOTE: This version string below is modified by a pre-commit hook on the git repository */
std::string version = "$ModVer 4$";
std::string version = "$ModVer 5$";
return "1.0." + version.substr(8,version.length() - 9);
}

Expand Down Expand Up @@ -825,7 +825,7 @@ bool JSModule::OnMessage(const aegis::gateway::events::message_create &message,
js->run(c.get_id().get(), jsonstore);
return !js->hasReplied();
}
return false;
return true;
}

ENTRYPOINT(JSModule);
Expand Down

0 comments on commit 40ccdd2

Please sign in to comment.