heres a question for u
 

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

heres a question for u

Started by walt52196, 02 April, 2005, 16:48:43

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

walt52196

How can I keep the users that has -shares out of the hub automatically I have the settings set for 2 gigs in robocop 8.0b and in the main ptokax itself the settings are just blank for now.
MUSICLAB.no-ip.info

jiten

#1
Well, this isn't the thread where u should be posting.

Anyway, do you mean negative shares?

If so, try this:

function Main()
	frmHub:EnableFullData(1)
end

function DataArrival(tUser, sData)
	if strsub(sData, 1, 12) == "$MyINFO $ALL" then
		local _,_, sUsername, sDescription, sSpeed, sEmail, iShareSize = strfind(sData, "%$ALL ([^ ]+) ([^$]*)%$ $([^$]+)[^$]%$([^$]*)%$(%S*)%$")
		local _,_, sTag = strfind(sDescription or "none", "<(.*)>$")
		if sUsername ~= tUser.sName then
			tUser:Disconnect()
		end
		if sDescription then if strfind(sDescription, "mldc") then tUser:Disconnect() end end
		if (tonumber(iShareSize) or -1) < 0 then tUser:Disconnect() end
	end
end


Cheers

walt52196

what this and how do I use it
A friend of mines help me setup up the hub all I basically did was left it running this is greak to me. ?(
----------------------------------------------------
function Main()
   frmHub:EnableFullData(1)
end

function DataArrival(tUser, sData)
   if strsub(sData, 1, 12) == "$MyINFO $ALL" then
      local _,_, sUsername, sDescription, sSpeed, sEmail, iShareSize = strfind(sData, "%$ALL ([^ ]+) ([^$]*)%$ $([^$]+)[^$]%$([^$]*)%$(%S*)%$")
      local _,_, sTag = strfind(sDescription or "none", "<(.*)>$")
      if sUsername ~= tUser.sName then
         tUser:Disconnect()
      end
      if sDescription then if strfind(sDescription, "mldc") then tUser:Disconnect() end end
      if (tonumber(iShareSize) or -1) < 0 then tUser:Disconnect() end
   end
end

Psycho_Chihuahua

#3
insert it to a new textfile and name it "antimldc.lua" and then put that lua file in the scripts folder of your ptokax

after that restart the scripts using the button in the script editor part of ptokax
PtokaxWiki ?PtokaX Mirror + latest Libs

01100001011011000111001101101111001000000110101101101110011011110111011101101110001000000110000101110011001000000101010001101111011010110110111101101100011011110111001101101000

jiten

Yups, that 's it  ;)

SMF spam blocked by CleanTalk