Script for Anty force redirect
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

Script for Anty force redirect

Started by viisoara17, 23 June, 2007, 23:34:07

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

viisoara17

Someone is usyng force redirect to get all my users. How can i stop that?

bastya_elvtars

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


untested!
Everything could have been anything else and it would have just as much meaning.

viisoara17

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'

Thor

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

viisoara17

ok
But what about this :   ... scripts\antiredir.lua:3: ')' expected (to close '(' at line 2) near 'return'

Naithif

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

viisoara17

it`s working veery good. Thank you

bastya_elvtars

Everything could have been anything else and it would have just as much meaning.

SMF spam blocked by CleanTalk