PtokaX forum

Archive => Archived 5.1 boards => Request for scripts => Topic started by: viisoara17 on 23 June, 2007, 23:34:07

Title: Script for Anty force redirect
Post by: viisoara17 on 23 June, 2007, 23:34:07
Someone is usyng force redirect to get all my users. How can i stop that?
Title: Re: Script for Anty force redirect
Post by: bastya_elvtars on 24 June, 2007, 01:10:39
function OpForceMoveArrival(User, Data)
  SendToOps("RedirectCheck",User.sName.." is trying to use the DC++ builtin redirect feature."
  return 1
end


untested!
Title: Re: Script for Anty force redirect
Post by: viisoara17 on 24 June, 2007, 12:19:10
Ok thx, and that will block the force redirect or will just send to OPs an message?
I tired to test him, but ..  scripts\antiredir.lua:3: ')' expected (to close '(' at line 2) near 'return'
Title: Re: Script for Anty force redirect
Post by: Thor on 24 June, 2007, 12:19:31
This script will do both: block the redirect, and alert the OPs about hat. If you want to see the report in the OpChat, use SendToOpChat instad of SendToOps
Title: Re: Script for Anty force redirect
Post by: viisoara17 on 24 June, 2007, 12:35:11
ok
But what about this :   ... scripts\antiredir.lua:3: ')' expected (to close '(' at line 2) near 'return'
Title: Re: Script for Anty force redirect
Post by: Naithif on 24 June, 2007, 12:38:36
Quote from: viisoara17 on 24 June, 2007, 12:35:11
ok
But what about this :   ... scripts\antiredir.lua:3: ')' expected (to close '(' at line 2) near 'return'



function OpForceMoveArrival(User, Data)
  SendToOps("RedirectCheck",User.sName.." is trying to use the DC++ builtin redirect feature."
  return 1
end


It's a missing ) from SendToOps[...] line's end.

function OpForceMoveArrival(User, Data)
  SendToOps("RedirectCheck",User.sName.." is trying to use the DC++ builtin redirect feature.")
  return 1
end


Try this
Title: Re: Script for Anty force redirect
Post by: viisoara17 on 24 June, 2007, 13:14:41
it`s working veery good. Thank you
Title: Re: Script for Anty force redirect
Post by: bastya_elvtars on 24 June, 2007, 13:20:05
Sorry, I was in a hurry. :)