PtokaX forum

Development Section => Your Developing Problems => Topic started by: Typhoon on 16 October, 2003, 21:23:01

Title: disconnect if L: and B: in MyInfoString
Post by: Typhoon on 16 October, 2003, 21:23:01
looked like crap!!! read next post ....

*forgot the edit button*

:)
Title:
Post by: OpiumVolage on 16 October, 2003, 21:47:20
Try to guest whitch are the chars that can be translated in smileys :))
Title:
Post by: Typhoon on 16 October, 2003, 22:19:58
hmm , i will just try it again then  *gg* ...


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

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



this one looks better ;)
even though it looks better it still dont work and do the job...