The PtokaX Portal
News: READ THE RULES
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
September 07, 2010, 10:21:58 PM


Login with username, password and session length


Poll
Question: Add that block to PtokaX ?
YES! - 8 (30.8%)
Only as option with default enabled. - 11 (42.3%)
Only as option with default disabled. - 7 (26.9%)
NO. We must live with that bug. - 0 (0%)
Total Voters: 25

Pages: [1]   Go Down
  Print  
Author Topic: Clients with buggy supports block  (Read 10741 times)
0 Members and 1 Guest are viewing this topic.
PPK
Administrator
Emperor
*****

Karma: +199/-16
Online Online

Posts: 1 099


PtokaX "developer"


View Profile
« on: December 16, 2007, 01:49:15 AM »

Code:
-- Block of clients with buggy supports
-- Created for fun and to force client creators to fix bug caused by bad quack coding.

function SupportsArrival(curUser, sData)
    if string.sub(sData, string.len(sData)-1, string.len(sData)-1) == " " then
        Core.SendToUser(curUser, "<"..Core.GetHubSecAlias().."> Your client is buggy and sent bad $Supports command.")
        Core.SendToUser(curUser, "<"..Core.GetHubSecAlias().."> Please report that bug to your client creator and wait for fixed version.")
        Core.SendToUser(curUser, "<"..Core.GetHubSecAlias().."> If you don't want to wait or your client creator is not able to fix that bug then please change client.")
Core.Disconnect(curUser)
    end
end
Logged
bastya_elvtars
Administrator
Forum God
*****

Karma: +172/-7
Offline Offline

Posts: 3 748


The rock n' roll doctor


View Profile WWW
« Reply #1 on: December 16, 2007, 01:06:11 PM »

Yes, but not in a hardcoded way. Or at least not for the first time. Tongue
Logged

My work is quick, reliable and cheap. You can choose 2 of these options. Smiley
The LawMaker & FreshStuff Site
The LawMaker & FreshStuff Forum
The PtokaX Wiki
CrazyGuy
Global Moderator
Viking
*****

Karma: +82/-20
Offline Offline

Posts: 533



View Profile WWW
« Reply #2 on: December 16, 2007, 01:48:55 PM »

May i suggest a Core.Kick instead of a Core.Disconnect to avoid hammering ?  Roll Eyes
Logged

bastya_elvtars
Administrator
Forum God
*****

Karma: +172/-7
Offline Offline

Posts: 3 748


The rock n' roll doctor


View Profile WWW
« Reply #3 on: December 16, 2007, 02:01:34 PM »

May i suggest a Core.Kick instead of a Core.Disconnect to avoid hammering ?  Roll Eyes

I object; hammering will lead to autoban anyway. And kicking would disappoint the user too much IMHO.
Logged

My work is quick, reliable and cheap. You can choose 2 of these options. Smiley
The LawMaker & FreshStuff Site
The LawMaker & FreshStuff Forum
The PtokaX Wiki
CrazyGuy
Global Moderator
Viking
*****

Karma: +82/-20
Offline Offline

Posts: 533



View Profile WWW
« Reply #4 on: December 16, 2007, 07:33:02 PM »

I object; hammering will lead to autoban anyway. And kicking would disappoint the user too much IMHO.

i don't really see why kicking would disappoint more than an autoban for hammering
Logged

TwîsTèd-dèvîl
Viking
****

Karma: +79/-2
Offline Offline

Posts: 511



View Profile WWW
« Reply #5 on: December 16, 2007, 07:35:43 PM »

If kicking doesnt that mean user has to be in hub ... therefore defeting the object
Logged

ruler
Triple Ace
**

Karma: +7/-2
Offline Offline

Posts: 188



View Profile WWW
« Reply #6 on: December 16, 2007, 10:16:14 PM »

i voted 'yes' but thats because i'd like to see the back of all dodgy clients  Grin
Logged

TTB
Lord
***

Karma: +17/-1
Offline Offline

Posts: 432



View Profile
« Reply #7 on: December 17, 2007, 10:08:01 AM »

Voted: Only as option with default enabled.

I don't know which clients has buggy supports. The hub-runner should manage it if needed, imo.
Logged

TTB

(¯ ·.¸¸.-> Admin @ Surfnet Dutch DVD Hub <-.¸¸.·´¯)
Thor
Scripter
Lord
******

Karma: +43/-4
Offline Offline

Posts: 294



View Profile WWW
« Reply #8 on: December 17, 2007, 12:58:37 PM »

The only one client which sends corrupted $Supports string is rmDC.
Logged

May the force be with you


PPK
Administrator
Emperor
*****

Karma: +199/-16
Online Online

Posts: 1 099


PtokaX "developer"


View Profile
« Reply #9 on: December 17, 2007, 01:09:32 PM »

No, it is not only one client Tongue But yes this script block rmDC++ too Cool
Logged
PPK
Administrator
Emperor
*****

Karma: +199/-16
Online Online

Posts: 1 099


PtokaX "developer"


View Profile
« Reply #10 on: January 05, 2008, 10:59:00 PM »

36.8% for yes, 36.8% for option with enabled, 26.3% for option with disabled.

Who really test that script ? Why nobody complains that this script blocking DC++ and most of DC++ modifications ? Who really want to block them ? Grin
Logged
Mutor
Global Moderator
Forum God
*****

Karma: +372/-18
Offline Offline

Posts: 3 631


To err is human, to arr is pirate...


View Profile WWW
« Reply #11 on: January 05, 2008, 11:17:08 PM »

Well the poll itself has little to do with your script.
Asking if users want bad supports blocked does not
infer you want them to test your script.

I'm not sure why blocking this is even a question.
Do you allow bad client tags? Do you allow invalid MyINFO?
Did you put either of those to a vote? Not AFAIK, but
you do have an option to allow clients without tags.
So in keeping with tradition, provide it as an option. Smiley
Logged

Respectfully,

Mutor

=-=-=-=-=-=-=-==-=-=-=
[ Ptokax Admins Hub ] Ptokax Help Hub
[ Mutor's Ptokax Archive Website ] Scripting Forum
[ Dynamic Downloads ] API 2
[ Microsoft IIS serving PxWeb 1.0d ] API 2
[ WebReg 1.1.2.0 ] Web Based Hub Reg
PPK
Administrator
Emperor
*****

Karma: +199/-16
Online Online

Posts: 1 099


PtokaX "developer"


View Profile
« Reply #12 on: January 05, 2008, 11:39:05 PM »

Tag is optional because it is not part of protocol, it is ugly description hack by quack.

This block is question, because that bug is in most actually used clients Roll Eyes
Logged
CrazyGuy
Global Moderator
Viking
*****

Karma: +82/-20
Offline Offline

Posts: 533



View Profile WWW
« Reply #13 on: January 06, 2008, 11:07:17 AM »

36.8% for yes, 36.8% for option with enabled, 26.3% for option with disabled.

Who really test that script ? Why nobody complains that this script blocking DC++ and most of DC++ modifications ? Who really want to block them ? Grin

I haven't tested that script, but I can see pretty clearly what it does  Tongue
As Mutor said, the question asked in the poll is taken as stand-alone.

I would encourage such a block as default if it wasn't that it would mean so many current clients will not be allowed in because of it  Wink
Therefor I'm sticking with my vote of making it optional
Logged

PPK
Administrator
Emperor
*****

Karma: +199/-16
Online Online

Posts: 1 099


PtokaX "developer"


View Profile
« Reply #14 on: July 04, 2008, 04:06:51 PM »

Voting locked, will be implemented in next PtokaX version as option with default enabled  Cool
Logged
CrazyGuy
Global Moderator
Viking
*****

Karma: +82/-20
Offline Offline

Posts: 533



View Profile WWW
« Reply #15 on: July 04, 2008, 09:20:07 PM »

good  Grin
Logged

ATAG
Scripter
Double Ace
******

Karma: +13/-0
Offline Offline

Posts: 106



View Profile
« Reply #16 on: October 12, 2008, 11:57:22 PM »

Voting locked, will be implemented in next PtokaX version as option with default enabled  Cool
How can i disable it?  Shocked
Logged
Mutor
Global Moderator
Forum God
*****

Karma: +372/-18
Offline Offline

Posts: 3 631


To err is human, to arr is pirate...


View Profile WWW
« Reply #17 on: October 13, 2008, 12:45:34 AM »

There will be an option for you to toggle once it's implemented.

First the horse, then the cart.   Tongue
Logged

Respectfully,

Mutor

=-=-=-=-=-=-=-==-=-=-=
[ Ptokax Admins Hub ] Ptokax Help Hub
[ Mutor's Ptokax Archive Website ] Scripting Forum
[ Dynamic Downloads ] API 2
[ Microsoft IIS serving PxWeb 1.0d ] API 2
[ WebReg 1.1.2.0 ] Web Based Hub Reg
ATAG
Scripter
Double Ace
******

Karma: +13/-0
Offline Offline

Posts: 106



View Profile
« Reply #18 on: October 13, 2008, 01:09:16 AM »

Then what is "Bad $Supports from <unknown> (xxx.xxx.xxx.xxx) - user closed." in the log?
Logged
Mutor
Global Moderator
Forum God
*****

Karma: +372/-18
Offline Offline

Posts: 3 631


To err is human, to arr is pirate...


View Profile WWW
« Reply #19 on: October 13, 2008, 01:13:49 AM »

Just what it seems. AFAIK, there is no option to enable/disable yet.
Correct me if I'm wrong. I can take it.  Smiley
Logged

Respectfully,

Mutor

=-=-=-=-=-=-=-==-=-=-=
[ Ptokax Admins Hub ] Ptokax Help Hub
[ Mutor's Ptokax Archive Website ] Scripting Forum
[ Dynamic Downloads ] API 2
[ Microsoft IIS serving PxWeb 1.0d ] API 2
[ WebReg 1.1.2.0 ] Web Based Hub Reg
PPK
Administrator
Emperor
*****

Karma: +199/-16
Online Online

Posts: 1 099


PtokaX "developer"


View Profile
« Reply #20 on: October 13, 2008, 01:36:20 AM »

Then what is "Bad $Supports from <unknown> (xxx.xxx.xxx.xxx) - user closed." in the log?
That is rmDC++, client sending more buggy supports that this block will disallow Roll Eyes
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
TinyPortal v0.9.8 © Bloc


Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 3.319 seconds with 48 queries.