diff --git a/plugins/chatter.lua b/plugins/chatter.lua index 45efd61..53a41fe 100755 --- a/plugins/chatter.lua +++ b/plugins/chatter.lua @@ -33,7 +33,7 @@ function chatter:action(msg, config) --Uncomment the following line for Al Gore-like conversation. --or (msg.reply_to_message and msg.reply_to_message.from.id == self.info.id) ) - or msg.text:match('^'..config.CMD_PAT) + or msg.text:match('^'..config.cmd_pat) or msg.text == '' ) then return true diff --git a/plugins/shout.lua b/plugins/shout.lua index 9ba7180..77d1a9b 100644 --- a/plugins/shout.lua +++ b/plugins/shout.lua @@ -7,7 +7,7 @@ shout.command = 'shout ' function shout:init(config) shout.triggers = utilities.triggers(self.info.username, config.cmd_pat):t('shout', true).table shout.doc = [[``` -]]..config.CMD_PAT..[[shout +]]..config.cmd_pat..[[shout Shouts something. Input may be the replied-to message. ```]] end