Remove Search of Main in "Lucifer 6.6.6 [build 2.2] - LUA 5.1x [Strict][API 2]"
 

Remove Search of Main in "Lucifer 6.6.6 [build 2.2] - LUA 5.1x [Strict][API 2]"

Started by BrotherBear, 10 August, 2008, 16:00:46

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

BrotherBear

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!
Regards,

BrotherBear

Leun

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



BrotherBear

Thanks Leun, that was the magic to fix this :)

Tested and it Worked =)
Regards,

BrotherBear

SMF spam blocked by CleanTalk