pull/156/head
M66B 6 years ago
parent b4fbf80141
commit d70517cdfe

@ -1548,7 +1548,7 @@ class Core {
try { try {
for (EntityRule rule : rules) for (EntityRule rule : rules)
if (rule.matches(context, message, imessage)) { if (rule.matches(context, message, imessage)) {
rule.execute(context, db, message); rule.execute(context, message);
if (rule.stop) if (rule.stop)
break; break;
} }

@ -196,7 +196,7 @@ public class EntityRule {
return matched; return matched;
} }
void execute(Context context, DB db, EntityMessage message) throws IOException { void execute(Context context, EntityMessage message) throws IOException {
try { try {
JSONObject jaction = new JSONObject(action); JSONObject jaction = new JSONObject(action);
int type = jaction.getInt("type"); int type = jaction.getInt("type");

Loading…
Cancel
Save