Hi!
I would like to remove the Search of Main in Lucifer, that we see anyway :)
I only want it to Search in PM.
Thanks in advance!
You only need to replace:
ChatArrival = function(user,data)
local _,_, to = data:find("^$To:%s(%S+)%s+From:")
local _,_, msg = data:find("%b<>%s(.*)|$")
-- Message sent in Main or PM (except to Lucifer's Bot)
if (to and to ~= tSettings.sBot) or not to then
-- If user's profile is blocked and he advertised
if tSettings.tBlockedProfiles[user.iProfile] and PubCheck(user, msg, to) then
return true
end
end
into:
ChatArrival = function(user,data)
local _,_, to = data:find("^$To:%s(%S+)%s+From:")
local _,_, msg = data:find("%b<>%s(.*)|$")
-- Message sent in Main or PM (except to Lucifer's Bot)
if (to and to ~= tSettings.sBot) then
-- If user's profile is blocked and he advertised
if tSettings.tBlockedProfiles[user.iProfile] and PubCheck(user, msg, to) then
return true
end
end
Thanks Leun, that was the magic to fix this :)
Tested and it Worked =)