PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: IN-Flux on 02 November, 2003, 16:24:23

Title: Upload limit
Post by: IN-Flux on 02 November, 2003, 16:24:23
hi

I have been notice that a lot of ppl use some kind of software that limit their upload speed so is there any possibillity to block that kind of users
Title:
Post by: kepp on 02 November, 2003, 22:17:25
dc++k?
Title:
Post by: DarkElf on 03 November, 2003, 08:12:56
Use this script..


--Bugs made by piglja;-)?
--Piglja's Bugs fixed by Skrollster =))
--Skrollster bugs fixed by aMutex
-- ;-P

lock = 10
 
    function NewUserConnected(user)  
    if strfind(user.sMyInfoString,"B") then  
        s,e,bs = strfind(user.sMyInfoString,"B:(%x+)")  
        if (lock > tonumber(bs)) then
user:SendData("client-guard","U R using a modified dc++ and blocking speed to "..bs.." kb/s, we allow to block speed min. "..lock.." kb/s")
       user:SendData("client-guard","U can download the latest dc++ from [URL]http://dcplusplus.sourceforge.net[/URL]")  
user:Disconnect()  
else  
            SendToNick("client-guard","U R using modified version of dc++, U R curently blocking speed to "..bs.." kb/s")  
        end
    end  
end


bye
Title:
Post by: IN-Flux on 04 November, 2003, 14:43:43
thnx a lot ;)