Yaribz / SPADS

SpringRTS Perl Autohost for Dedicated Server
GNU General Public License v3.0
17 stars 16 forks source link

[Feature] Set/change privatehost password #65

Closed FIr3baL closed 3 months ago

FIr3baL commented 3 months ago

Some users just asked, and i heard this more than 1 time before, if it is possible to change the password of a privatehost.

Since changing the password is limited by spring protocol, how about adding a parameter to !privatehost letting the user decide about that password.

This way groups/friends could always start their host with the same password and don't need to struggle with dictating those 4 letters anymore.

I would say it's a "nice to have" :)

FIr3baL commented 3 months ago

Closed for now, because there seems to a simpler solution serverside, which just allows friends to bypass password input. https://discord.com/channels/549281623154229250/1266746654342778883

Yaribz commented 3 months ago

This was very easy to do, so I implemented it in 8b16bba. Files ClusterManager.pm and ClusterManagerHelp.dat just need to be updated on hosts if you want to be able to use custom passwords.

But the !privateHost command was already accepting a parameter which is the name of the cluster in which the private instance must be created (if not using default cluster). So the new password parameter must be given as second parameter (* can be provided as first parameter to use default cluster without having to give a specific cluster name).

FIr3baL commented 3 months ago

Thank you, that was quick :)