FAQ  •  Register  •  Login

/setserverpass and spaces

<<

sky_lark

User avatar

Posts: 2053

Joined: Wed Mar 10, 2010 6:00 pm

Post Sun Oct 19, 2014 9:32 pm

/setserverpass and spaces

Question about this, if I just type "/setserverpass " leaving a space right at the end, will the server recognize that command as (a) no password entered, thus open server for all or (b) me changing to the password to be a literal space that people still have to input, as in " "?
Follow Bitfighter! FacebookTwitterDiscord
<<

raptor

Posts: 1046

Joined: Mon Oct 11, 2010 9:03 pm

Post Mon Oct 20, 2014 7:19 am

Re: Weekly Party: Bits o' Color RERUN - Friday 10/17

If there are just spaces after it, then it is considered 'clear password'
<<

sam686

User avatar

Posts: 468

Joined: Fri Oct 15, 2010 8:53 pm

Location: United States, South Dakota

Post Mon Oct 20, 2014 12:13 pm

Re: Weekly Party: Bits o' Color RERUN - Friday 10/17

might be a bug: /setserverpass " " isn't setting the password and only clears... But if you go to host menu and put a space in the password, that works for setting a password to just a space.

Another bug: fails to save passwords to bitfighter.ini that have just spaces and nothing else.
<<

watusimoto

Site Admin

Posts: 1558

Joined: Tue Feb 23, 2010 7:07 pm

Location: Quartz's mom's house

Post Tue Dec 23, 2014 9:58 pm

Re: Weekly Party: Bits o' Color RERUN - Friday 10/17

might be a bug: /setserverpass " " isn't setting the password and only clears... But if you go to host menu and put a space in the password, that works for setting a password to just a space.

Another bug: fails to save passwords to bitfighter.ini that have just spaces and nothing else.


I don't have the source in front of me, but I think we trim the passwords to avoid spurious spaces. From the sound of it, we do it inconsistently, and maybe we shouldn't do it all.

If you really think this is a bug, please either fix it, or put a bug report in so it doesn't get forgotten.
<<

raptor

Posts: 1046

Joined: Mon Oct 11, 2010 9:03 pm

Post Wed Dec 24, 2014 7:03 pm

Re: Weekly Party: Bits o' Color RERUN - Friday 10/17

I don't think this is an issue - there are plenty of keys to choose from other than spaces for a password. Spaces are used for tokenization of commands and the effort to fix this is probably not worth for such an edge case.
<<

watusimoto

Site Admin

Posts: 1558

Joined: Tue Feb 23, 2010 7:07 pm

Location: Quartz's mom's house

Post Wed Dec 24, 2014 9:59 pm

Re: Weekly Party: Bits o' Color RERUN - Friday 10/17

There does at the very least seem to be some inconsistent behavior that should be corrected, even if the overall design is the one we want to stick with.
<<

amgine

Posts: 1399

Joined: Thu Apr 19, 2012 2:57 pm

Post Fri Dec 26, 2014 10:06 am

Re: /setserverpass and spaces

Putting my two sense in.

1. it should be consistant bolth ways.

2. I have needed to use a space before though rare.
Bitfighter Forever.

Return to Technical Support

Who is online

Users browsing this forum: No registered users and 6 guests

cron