determinate determinate

Author Topic: Clients with buggy supports block  (Read 15658 times)

0 Members and 1 Guest are viewing this topic.

Offline PPK

  • Administrator
  • Emperor
  • *****
  • Posts: 1 245
  • Karma: +206/-17
  • PtokaX "developer"
Clients with buggy supports block
« on: December 16, 2007, 01:49:15 am »
Code: [Select]
-- 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

Offline bastya_elvtars

  • Administrator
  • Forum God
  • *****
  • Posts: 3 795
  • Karma: +172/-7
  • The rock n' roll doctor
    • The LawMaker & FreshStuff3 Site
Re: Clients with buggy supports block
« 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. :P

Offline CrazyGuy

  • Global Moderator
  • Viking
  • *****
  • Posts: 533
  • Karma: +82/-20
    • ˜”°Ί•=-_The NightHawk_-=•Ί°”˜
Re: Clients with buggy supports block
« Reply #2 on: December 16, 2007, 01:48:55 pm »
May i suggest a Core.Kick instead of a Core.Disconnect to avoid hammering ?  ::)

Offline bastya_elvtars

  • Administrator
  • Forum God
  • *****
  • Posts: 3 795
  • Karma: +172/-7
  • The rock n' roll doctor
    • The LawMaker & FreshStuff3 Site
Re: Clients with buggy supports block
« Reply #3 on: December 16, 2007, 02:01:34 pm »
May i suggest a Core.Kick instead of a Core.Disconnect to avoid hammering ?  ::)

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

Offline CrazyGuy

  • Global Moderator
  • Viking
  • *****
  • Posts: 533
  • Karma: +82/-20
    • ˜”°Ί•=-_The NightHawk_-=•Ί°”˜
Re: Clients with buggy supports block
« 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

Offline TwξsTθd-dθvξl

  • Viking
  • ****
  • Posts: 510
  • Karma: +79/-2
    • EURO-OP
Re: Clients with buggy supports block
« 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

Offline ruler

  • Triple Ace
  • **
  • Posts: 188
  • Karma: +7/-2
    • DCHubAd
Re: Clients with buggy supports block
« 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  ;D

Offline TTB

  • Lord
  • ***
  • Posts: 440
  • Karma: +17/-1
Re: Clients with buggy supports block
« 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.
TTB

(― ·.ΈΈ.-> Admin @ Surfnet hubs <-.ΈΈ.·΄―)

Offline Thor

  • Scripter
  • Lord
  • ******
  • Posts: 296
  • Karma: +43/-5
    • Hungarian Direct Connect Site
Re: Clients with buggy supports block
« Reply #8 on: December 17, 2007, 12:58:37 pm »
The only one client which sends corrupted $Supports string is rmDC.
May the force be with you



Offline PPK

  • Administrator
  • Emperor
  • *****
  • Posts: 1 245
  • Karma: +206/-17
  • PtokaX "developer"
Re: Clients with buggy supports block
« Reply #9 on: December 17, 2007, 01:09:32 pm »
No, it is not only one client :P But yes this script block rmDC++ too 8)

Offline PPK

  • Administrator
  • Emperor
  • *****
  • Posts: 1 245
  • Karma: +206/-17
  • PtokaX "developer"
Re: Clients with buggy supports block
« 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 ? ;D

Offline Mutor

  • Global Moderator
  • Forum God
  • *****
  • Posts: 3 854
  • Karma: +395/-18
  • To err is human, to arr is pirate...
    • PxDev
Re: Clients with buggy supports block
« 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. :)
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

Offline PPK

  • Administrator
  • Emperor
  • *****
  • Posts: 1 245
  • Karma: +206/-17
  • PtokaX "developer"
Re: Clients with buggy supports block
« 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 ::)

Offline CrazyGuy

  • Global Moderator
  • Viking
  • *****
  • Posts: 533
  • Karma: +82/-20
    • ˜”°Ί•=-_The NightHawk_-=•Ί°”˜
Re: Clients with buggy supports block
« 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 ? ;D

I haven't tested that script, but I can see pretty clearly what it does  :P
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  ;)
Therefor I'm sticking with my vote of making it optional

Offline PPK

  • Administrator
  • Emperor
  • *****
  • Posts: 1 245
  • Karma: +206/-17
  • PtokaX "developer"
Re: Clients with buggy supports block
« Reply #14 on: July 04, 2008, 04:06:51 pm »
Voting locked, will be implemented in next PtokaX version as option with default enabled  8)

Offline CrazyGuy

  • Global Moderator
  • Viking
  • *****
  • Posts: 533
  • Karma: +82/-20
    • ˜”°Ί•=-_The NightHawk_-=•Ί°”˜
Re: Clients with buggy supports block
« Reply #15 on: July 04, 2008, 09:20:07 pm »
good  ;D

Offline ATAG

  • Scripter
  • Double Ace
  • ******
  • Posts: 106
  • Karma: +13/-0
Re: Clients with buggy supports block
« Reply #16 on: October 12, 2008, 11:57:22 pm »
Voting locked, will be implemented in next PtokaX version as option with default enabled  8)
How can i disable it?  :o

Offline Mutor

  • Global Moderator
  • Forum God
  • *****
  • Posts: 3 854
  • Karma: +395/-18
  • To err is human, to arr is pirate...
    • PxDev
Re: Clients with buggy supports block
« 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.   :P
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

Offline ATAG

  • Scripter
  • Double Ace
  • ******
  • Posts: 106
  • Karma: +13/-0
Re: Clients with buggy supports block
« 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?

Offline Mutor

  • Global Moderator
  • Forum God
  • *****
  • Posts: 3 854
  • Karma: +395/-18
  • To err is human, to arr is pirate...
    • PxDev
Re: Clients with buggy supports block
« 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.  :)
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

Offline PPK

  • Administrator
  • Emperor
  • *****
  • Posts: 1 245
  • Karma: +206/-17
  • PtokaX "developer"
Re: Clients with buggy supports block
« 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 ::)

Offline PPK

  • Administrator
  • Emperor
  • *****
  • Posts: 1 245
  • Karma: +206/-17
  • PtokaX "developer"
Re: Clients with buggy supports block
« Reply #21 on: November 19, 2011, 05:54:42 pm »
It is funny but dc++ devs again shown that they are bunch of idiots. Not only that they are not able to correctly code things as it is documented by them, but they are not able to fix bugs they created... https://answers.launchpad.net/dcplusplus/+question/179023  ;D

Offline Mutor

  • Global Moderator
  • Forum God
  • *****
  • Posts: 3 854
  • Karma: +395/-18
  • To err is human, to arr is pirate...
    • PxDev
Re: Clients with buggy supports block
« Reply #22 on: November 19, 2011, 08:32:16 pm »
Some things never change.
« Last Edit: November 19, 2011, 08:35:25 pm by Mutor »
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

 

determinate determinate
guestbook