Browse Source

Fix messed up rule insertion method

Alois Mahdal 2 years ago
parent
commit
83749ba402
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/imaprules.lua

+ 1
- 1
src/imaprules.lua View File

@@ -22,7 +22,7 @@ pkg.ADD = function(action, loader)
22 22
     local rule = {}
23 23
     rule.action = action
24 24
     rule.loader = loader or pkg.STATE.loader
25
-    table.insert(pkg.STATE, rule)
25
+    table.insert(pkg.STATE.ruleset, rule)
26 26
 end
27 27
 
28 28
 return pkg