@ microsoft . ...
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

@ microsoft . ...

Started by UwV-awayfromhome, 10 October, 2007, 20:22:59

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

UwV-awayfromhome

QuoteYou have just been sent a personal message by microsoft on The PtokaX Portal.

IMPORTANT: Remember, this is just a notification. Please do not reply to this email.

The message they sent you was:

hy ;D

me again, i need a small modification, to mutor`s Pm block http://mutor.no-ip.com:6703/files/User_PM_Filter_1.0b_L5.1.lua , to allow mesages from users, to bots, and op`s. thx v much

please help me



cheeers

Reply to this Personal Message here:
1. Did you actualy try and post this request ? i cant find it on the board ..
2. did you ask Mutor ? as far as i know  he is always willing and able to help if you ask niceley.. ..
3. i am not at home for a while so i can't answer your pm's with a pm untill i remeber my password.. 

bastya_elvtars

Excuse me, but is it really necessary to disclose PMs?
Everything could have been anything else and it would have just as much meaning.

UwV-stillawayfromhome

#2
the "m" was not that "p" imo ... so i thought it was ok ..
also i thought it nicer to answer then not to answer.. indeed maybe not neccesary though ..
more then that i should have mentioned the senders name in the subject of the prior post .. it would have a bigger chance of him/her actually reading it .. but i can't edit it now :p ..
so,.. wellregarded BE i meant no harm .. but if it bothers you or anyone else for that matter .. just whipe it .. i dont really care .. 


** edit i just found out i can modify these guest posts ..

UwV-notgoingbackyet

#3
--[[
	User PM Filter 1.0b LUA 5.0/5.1

	by Mutor                03/24/06
	
	Requested by vadertje
        Edited for microsoft per request to let bots and op's get pm's... 

	Prevents PM's by specified profiles to all but ops
	Edited for microsoft per request to let bots recieve pm's... 
	+Changes from 1.0       03/24/06
		+Added blocked profiles table
	
Edited for microsoft per request to let bots recieve pm's... 
]]

--Script Settings
PmCfg = {
--Name for bot pulled from hub, or use "custom" name
PmBot = frmHub:GetHubBotName(),
Profiles = {
[-1] = 1, --Unregistered User
[0] = 0, --Master
[1] = 0, --Operator
[2] = 0, --Vip
[3] = 0, --Registered User
[4] = 0, --Moderator
[5] = 0, --NetFounder
}
}

tBots = {
["botname1"]=1,
["botname2"]=1,
["botname3"]=1,
["botname4"]=1,
}

Main = function()
	if PmCfg.PmBot ~= frmHub:GetHubBotName() or not frmHub:GetHubBot() then
		frmHub:RegBot(PmCfg.PmBot, 1, "PM Filter Bot", "")
	end
end

ToArrival = function(user, data)
	if PmCfg.Profiles[user.iProfile] and PmCfg.Profiles[user.iProfile] == 1 then
		local s,e,who = string.find(data,"$To:%s+(%S+)%s+From:")
		local nick = GetItemByName(who)
		local prof = GetProfileName(user.iProfile) or "Unregistered User"
		if not nick then
			local OfflineMsg = "The user "..who.." is not online. Check your spelling."
			user:SendPM(PmCfg.PmBot,OfflineMsg)
			return 1
		else
			if not nick.bOperator or not tBots[who] then
				local FilterMsg = "<"..PmCfg.PmBot..">\r\n\r\n\tSorry "..user.sName..
				", Your Private Message To "..nick.sName.." Was Blocked.\r\n\r\n"..
				"\t"..prof.."'s may only PM Operators and bots\r\n\r\n"
				user:SendPM(nick.sName,FilterMsg)
				return 1
			end
		end
	end
end

the script already allowed for operators to recieve pm's from blocked profiles, i added a table where you can fill in your botnames..
it is "not tested" but i guess it works..

bastya_elvtars

Quote from: UwV-stillawayfromhome on 10 October, 2007, 20:48:17
so,.. wellregarded BE i meant no harm .. but if it bothers you or anyone else for that matter .. just whipe it .. i dont really care .. 

No problem, I am just concerned about it because it can serve as a bad example.
However, in this case it can be alowed, because you're trying to help.
Everything could have been anything else and it would have just as much meaning.

bastya_elvtars

Oh, and a good advice: do not ask for script support in PM! The chances are lower when only one scripter faces your problems. :)
Everything could have been anything else and it would have just as much meaning.

SMF spam blocked by CleanTalk