From 66d50ce6f5f3c7004f645b7b68dc8f3ed06baa08 Mon Sep 17 00:00:00 2001 From: topkecleon Date: Sun, 9 Aug 2015 14:21:33 -0400 Subject: [PATCH] moderation.lua bugfix --- .gitignore | 1 + plugins/moderation.lua | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 8e71a5d..9afa495 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ config.lua loc/weeb.lua console.lua *.json +plugins/owm.lua diff --git a/plugins/moderation.lua b/plugins/moderation.lua index 1d5c6ad..cd5a660 100644 --- a/plugins/moderation.lua +++ b/plugins/moderation.lua @@ -186,7 +186,7 @@ end local demote = {} -demote.trigger = '^/[mod]*dem[ote]*$' +demote.trigger = '^/[mod]*dem[ote]*' demote.action = function(msg) @@ -289,7 +289,7 @@ local triggers = { '^/[mod]*add$', '^/[mod]*rem[ove]*$', '^/[mod]*prom[ote]*$', - '^/[mod]*dem[ote]*$', + '^/[mod]*dem[ote]*', '^/modkick', '^/modban' }