Author Topic: disconnect if L: and B: in MyInfoString  (Read 1934 times)

0 Members and 1 Guest are viewing this topic.

Offline Typhoon

  • Lord
  • ***
  • Posts: 397
  • Karma: +22/-3
  • PGE Developer
    • PGE Homepage
disconnect if L: and B: in MyInfoString
« on: 16 October, 2003, 21:23:01 »
looked like crap!!! read next post ....

*forgot the edit button*

:)
« Last Edit: 16 October, 2003, 22:21:20 by Typhoon? »



PtokaX forum

disconnect if L: and B: in MyInfoString
« on: 16 October, 2003, 21:23:01 »

Offline OpiumVolage

  • Double Ace
  • *
  • Posts: 101
  • Karma: +1/-0
(No subject)
« Reply #1 on: 16 October, 2003, 21:47:20 »
Try to guest whitch are the chars that can be translated in smileys :))

Offline Typhoon

  • Lord
  • ***
  • Posts: 397
  • Karma: +22/-3
  • PGE Developer
    • PGE Homepage
(No subject)
« Reply #2 on: 16 October, 2003, 22:19:58 »
hmm , i will just try it again then  *gg* ...

Code: [Select]

--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...
« Last Edit: 16 October, 2003, 22:22:12 by Typhoon? »



PtokaX forum

(No subject)
« Reply #2 on: 16 October, 2003, 22:19:58 »