ADCH example NMDC redirector

Post finished Hubside Scripts here, known supporting hubsofts for LUA scripting.

ADCH++ | DCWatch | LUADCH
Pirre
Junior Member
Posts: 31
Joined: Tue Nov 10, 2009 11:57 am

ADCH example NMDC redirector

Post by Pirre » Sun Jun 05, 2011 4:16 pm

Below script is just a example of a lua running on a ADCH++ (rev 504 or above) that can act both as a nmdc to adc redirector only (then you only need this script running) or act as both real hub and redirector on the same or different port .

This can not be used on a hub running a secure server port.

It sends a nmdc redirect to any connecting user, and based on the fact that the ADC protocol should ignore "Unknown" commands a client connecting in ADC mode will just drop that command while a client in NMDC mode wil follow it (based on its settings)

So it is possible to have the real ADCH hub running on port 411 and at the same time redirecting nmdc mode clients to the same port but then in ADC mode (if they support ADC).
Maybe there are problems doing this but so far non seen and have no doubt that if there are ...

This could be made more complex by adding a redirect based on received nmdc tag, a max number of redirects by ip, ... etc.
You do not have the required permissions to view the files attached to this post.

Pirre
Junior Member
Posts: 31
Joined: Tue Nov 10, 2009 11:57 am

Re: ADCH example NMDC redirector

Post by Pirre » Mon Jun 06, 2011 1:58 pm

Same methode, but added optional timed delay on redirect, not sure what this going to do in resource use, advantage when timer uses it works also on a adcs hub :)

PS: The intention of posting it here is to see sugestions or selfmade mod's to it, see this as 1 way to do it ... , feel free to post your own mods
You do not have the required permissions to view the files attached to this post.

Pirre
Junior Member
Posts: 31
Joined: Tue Nov 10, 2009 11:57 am

Re: ADCH example NMDC redirector

Post by Pirre » Tue Jun 07, 2011 6:45 pm

Changed Timer system to reduce resource use.
You do not have the required permissions to view the files attached to this post.

pR0Ps
Junior Member
Posts: 29
Joined: Sun Dec 05, 2010 11:35 am

Re: ADCH example NMDC redirector

Post by pR0Ps » Mon Aug 22, 2011 7:02 pm

Updated the script to give the option to send the redirect message in PM or mainchat.
You do not have the required permissions to view the files attached to this post.

Pirre
Junior Member
Posts: 31
Joined: Tue Nov 10, 2009 11:57 am

Re: ADCH example NMDC redirector

Post by Pirre » Tue Mar 20, 2012 7:23 pm

Latest version with some small mods
You do not have the required permissions to view the files attached to this post.

Who is online

Users browsing this forum: Google (Crawler) and 0 guests