PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: 6Marilyn6Manson6 on 16 January, 2005, 15:47:58

Title: AntiSocket5
Post by: 6Marilyn6Manson6 on 16 January, 2005, 15:47:58
Hello.... I have problem.. in my hub have 3 user with socks5... with ip 24.251.26.250 . I request anti socks5... when user connect... he/she receive:

"You can't enter here because you use socks5"  and user disconnect....  Thanks a lot
Title:
Post by: Ale on 16 January, 2005, 16:19:59
Salve Marilyn, sono CyberCop, chiss? che tu non ti ricordi di me... E' raro trovare italiani qui ...  :D
Ecco lo script che richiedi... fatto dal mitico NightLitch, solo da tradurre i messaggi...
Per? ora mi fai op su Planetarium :D lol
Ciao.


-- Mode Check : By NightLitch
-- Fixed the nil error
-- Checking if MyInfo is correct, becouse it can be missed in some Build Versions...

BotName = "ModeChecker"

function NewUserConnected(curUser)
   if curUser.sMyInfoString then
      s,e,Mode = strfind(curUser.sMyInfoString,"M:(%u*),")
      if Mode == nil then
         curUser:SendData(BotName,"You are hidding your TAG..")
         curUser:Disconnect()
      elseif  Mode == "S" then  
         curUser:SendData(BotName,"Your Client Mode ( "..Mode.." ) is not Allowed here, Please change to ( A ) or ( P ).")
         curUser:Disconnect()
      end
   else
      curUser:SendData(BotName,"Your MyInfoString is messed up or lost...")
      curUser:Disconnect()
   end
end
Title:
Post by: 6Marilyn6Manson6 on 16 January, 2005, 17:13:24
Eila ale.. sinceramente non focalizzo chi 6 ma ti dico 3 cose. 1 grazie per lo script soprattuto perk?? di NightLitch, 2 che vorrei ricordare chi 6.. 3 vieni su planetarium LOL ciaus bello
Title:
Post by: Optimus on 16 January, 2005, 17:16:07
wtf lOl :D
Title:
Post by: 6Marilyn6Manson6 on 16 January, 2005, 17:17:58
Hi Optimus :P
Title:
Post by: Ubikk on 17 January, 2005, 21:02:16
That's strange.
My PtokaX hub automaticly kicks users with socket5. And I dont know how to get it to behave. I dont want it to kick them anymore. DO you guys have any suggestions? :)

P.S: I'm using 0.3.2.6. TD4 ;)
Title:
Post by: 6Marilyn6Manson6 on 17 January, 2005, 21:54:42
User with   M:5   ptokax kick.. is ok...but i want script for kick user with ip socket5... you understand?
Title:
Post by: bastya_elvtars on 17 January, 2005, 23:15:36
QuoteOriginally posted by Ubikk
That's strange.
My PtokaX hub automaticly kicks users with socket5. And I dont know how to get it to behave. I dont want it to kick them anymore. DO you guys have any suggestions? :)

P.S: I'm using 0.3.2.6. TD4 ;)

hmm accepting without DC tag is on?
Title:
Post by: 6Marilyn6Manson6 on 17 January, 2005, 23:24:59
Yes it is...

[23:24] *** Nick: [IT]GoD, IP: 24.13.158.205, Mode: A, Hubs: 2, Slots: 4, Client: DC++, Ver.: 0.404

i don't want this login :(