Echo: Ersetze / am Anfang bei Echo

This commit is contained in:
Andreas Bielawski 2016-08-19 00:04:39 +02:00
parent 5d8c86115b
commit 0d434db39c
1 changed files with 6 additions and 0 deletions

View File

@ -35,6 +35,12 @@ function echo:action(msg)
output = '*Echo:*\n"' .. utilities.md_escape(input) .. '"'
utilities.send_message(self, msg.chat.id, output, true, nil, true)
return
elseif msg.chat.type == 'group' then
local b = 1
while b ~= 0 do
input = utilities.trim(input)
input,b = input:gsub('^/+','')
end
end
utilities.send_message(self, msg.chat.id, input, true, nil, true)
end