Spezifischer

This commit is contained in:
Andreas Bielawski 2016-07-09 15:13:41 +02:00
parent a1453c6795
commit 271cad507a

View File

@ -124,7 +124,7 @@ function bot:on_callback_receive(callback, msg, config) -- whenever a new callba
return
end
if not callback.data:find(':') or not callback.data:find(self.info.username) then
if not callback.data:find(':') or not callback.data:find('@'..self.info.username..' ') then
return
end
callback.data = string.gsub(callback.data, '@'..self.info.username..' ', "")