PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: Peter Pan on 15 October, 2003, 20:40:10

Title: "Active Mode Only "
Post by: Peter Pan on 15 October, 2003, 20:40:10
Hi guys,

Can anyone help with a script which will only allow "Active Mode" users in ?

Title:
Post by: [NL]Pur on 15 October, 2003, 20:50:40
-- Only active user script [NL]PUR 15OKt03

function DataArrival(user,data)

if strfind(data,"$MyINFO",1,1) then
if strfind(data, "M:P", 1, 1) then
        user:Disconnect()
end
end

end
Title:
Post by: Peter Pan on 15 October, 2003, 23:53:59
Brilliant thanx Pur... any chance you can add the funtion which although disconects them send them a message explaining why they are refused access ?

Thanx again man
Title:
Post by: Peter Pan on 16 October, 2003, 00:00:43
Actually man dont worry about it. my network co- owner is a bit of a genius and did it..



-- Only active user script [NL]PUR 15OKt03
-- updated by Emp003 to redirect users using passive mode


Bot = "???K???????"

function DataArrival(user,data)

if not user.bOperator then
   if strfind(data,"$MyINFO",1,1) then
      if strfind(data, "M:P", 1, 1) then
        user:SendPM(Bot, "You Are Being Redirected Because This Hub Is Active Mode Only")
   user:SendPM(Bot, "Redirecting...")
   user:SendData("$ForceMove "..frmHub:GetRedirectAddress())

       end
    end
  end
end
Title:
Post by: [NL]Pur on 16 October, 2003, 00:20:30
good that it is working :)
Title:
Post by: Corsari on 27 November, 2003, 19:40:58
Any chanche to know why passive users are not checked by bots/scripts?

Thank you for any answer

Robert
Title:
Post by: TiMeTrAVelleR on 27 November, 2003, 22:11:11
Can you make it that it doesent check  regged users  ??
Title:
Post by: plop on 28 November, 2003, 00:28:57
dcgui's autosearch always seems to works in passive mode.
so even if they are active they get redirected by this script.

plop