Browse Source

Fix messed up rule insertion method

Alois Mahdal 4 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
     local rule = {}
22
     local rule = {}
23
     rule.action = action
23
     rule.action = action
24
     rule.loader = loader or pkg.STATE.loader
24
     rule.loader = loader or pkg.STATE.loader
25
-    table.insert(pkg.STATE, rule)
25
+    table.insert(pkg.STATE.ruleset, rule)
26
 end
26
 end
27
 
27
 
28
 return pkg
28
 return pkg