PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: whoosh on 20 August, 2005, 17:11:31

Title: Client Check On Enter Hub
Post by: whoosh on 20 August, 2005, 17:11:31
Is there such a script that requests a user to type a particular command on connection to the hub, and only allows that user to connect on reciept of the correct response?
The reason for this is i run a hub and have recently made it a fuldc only hub to provide maximum compatability for all users, the trouble is that as far as i can see, fuldc is impossible to distinguish from dc++ 0.674. So i was wondering if when a user connects, could he/she be asked to type the command "/fuldc"    upon which fuldc displays "http://ful.dcportal.net ". If this displayed correctly, the user would then be allowed to connect, or if not, the user would be disconnected and informed to update his/her client.

All help greatly appreciated
Title:
Post by: Pothead on 20 August, 2005, 19:36:23
QuoteOriginally posted by whoosh
The reason for this is i run a hub and have recently made it a fuldc only hub to provide maximum compatability for all users,
Compatability ?( erh . . . lost for words . . . i supose Stupid would be a good one.
QuoteOriginally posted by whoosh
So i was wondering if when a user connects, could he/she be asked to type the command "/fuldc"    upon which fuldc displays "http://ful.dcportal.net ". If this displayed correctly, the user would then be allowed to connect.
What's to stop the user just typing (or copy pasting)
http://ful.dcportal.net ?
Title:
Post by: whoosh on 20 August, 2005, 20:20:03
Well, the full story is that 85% of the users in the hub voted that they would like to see it become a fuldc only hub, due to some of them having problems connecting to older dc++ versions etc...the problems may be their own issues, but by at least trying to oblige i am doing the best that i can to be keep them happy. As for the /fuldc command...when it is typed in, the reponse to it comes up automatically, and so i thought that it would be able to be detected by a script instead of it being detected as if you had typed it in manually, there by if the user was asked to type in /fuldc    the script would then detect if the response to that command was auto generated or not and act accordingly. To some it may seem a stupid request, and perhaps it was a bit stupid of me to ask in the lua language board if it was possible.
thanks for your time and input
Title:
Post by: Pothead on 20 August, 2005, 22:32:59
QuoteOriginally posted by whoosh
due to some of them having problems connecting to older dc++ versions etc...the problems may be their own issues
For a guess, when they resume a download from an older client, it restarts from the beginning ?  This bug comes from DC++ (and most newer clients based upon it, contain this bug), where it doesn't check if the user it's connecting with can support TTHL (Tiger Tree Hashing Leaves).  It just assumes they can. ?(
Goto Advanced Settings and Disable
Advanced TTH Resuming
:)

Plus it's more sensible and easier to disallow older clients. ;)
But change that setting, and you shouldn't need to. :)
Title:
Post by: bastya_elvtars on 20 August, 2005, 23:14:47
The answer is simple: fulDC cannot be detected, so you can do nothing about this.
Title: THX BASTYA AND POTHEAD
Post by: whoosh on 20 August, 2005, 23:39:17
Thanks guys for taking the time out to respond, typical that i had to pick a undetectable client to run, but now that i know a little more perhaps i can explain about the TTH possible issue and also suggest that they simply upgrade their clients to the latest versions available. This is all fairly new to me, so i am only learning....the hard way  :-)
Title:
Post by: Pothead on 20 August, 2005, 23:45:45
QuoteOriginally posted by whoosh
perhaps i can explain about the TTH possible issue and also suggest that they simply upgrade their clients to the latest versions available.
You should tell them to disable that option, because it will also affect other hubs they are in, with older clients.  And yes, people on older clients should update to newer ones.
Title:
Post by: Quattro on 23 August, 2005, 09:46:10
Checking for a certain response is possible, but you can't see the difference between someone typing/copying the fulDC spam or a real fulDC response simply because the hub will never see the /fulDC command as this is an internal command and will not get send to the hub