...jetzt wirklich!

This commit is contained in:
Andreas Bielawski 2016-07-13 02:08:59 +02:00
parent c84befa6b2
commit 76a7923519

View File

@ -105,10 +105,9 @@ function bot:on_msg_receive(msg, config) -- The fn run whenever a message is rec
-- gsub out user name if multiple bots are in the same group
if msg.text:match(config.cmd_pat..'([A-Za-z0-9-_-]+)@'..self.info.username) then
msg.text = string.gsub(msg.text, '@'..self.info.username, "")
msg.text = string.gsub(msg.text, config.cmd_pat..'([A-Za-z0-9-_-]+)@'..self.info.username, "/%1")
msg.text_lower = msg.text:lower()
end
msg = pre_process_msg(self, msg, config)
for _, plugin in ipairs(self.plugins) do