<RoomNameAvoidChars> not working.

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

GalaxyDoomMaster
Posts: 19
Joined: 20 Mar 2018, 01:14

<RoomNameAvoidChars> not working.

Postby GalaxyDoomMaster » 25 Feb 2019, 10:15

<RoomNameAvoidChars> doesn't seem to be working in my config.

I create a room with the Chars I wanted it to avoid.

I use: <RoomNameAvoidChars><![CDATA[,.:]]></RoomNameAvoidChars>

I can still use these characters and the room is made with no problem and is still accessible by everyone. I have tried this inside my <zone> area, nothing has working so far. What am I doing wrong?
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: <RoomNameAvoidChars> not working.

Postby Lapo » 26 Feb 2019, 17:01

Hi,
I don't know how to reproduce this problem. Maybe you're testing with Rooms defined directly in the config.xml?
Keep in mind the setting is meant to filter out characters from user created Rooms, which means Rooms created dynamically via client side requests.

Other than that the <RoomNameAvoidChars> works as expected for me. I've created different Rooms with those "avoid" characters and they get all filtered out correctly.

Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
GalaxyDoomMaster
Posts: 19
Joined: 20 Mar 2018, 01:14

Re: <RoomNameAvoidChars> not working.

Postby GalaxyDoomMaster » 01 Mar 2019, 11:06

I misunderstood, I thought this would PREVENT the user rather then just remove the words, so it would say "hey you can't do this action" in a messagebox window. How would I go about doing this then?

This is solved.
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: <RoomNameAvoidChars> not working.

Postby Lapo » 01 Mar 2019, 11:10

I am not sure what you're asking.
What is it that you don't want the users do?

Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games
GalaxyDoomMaster
Posts: 19
Joined: 20 Mar 2018, 01:14

Re: <RoomNameAvoidChars> not working.

Postby GalaxyDoomMaster » 02 Mar 2019, 03:36

@Lapo Nevermind, I figured it all out. This is solved! :) thank you.

Return to “SmartFoxServer 1.x Discussions and Help”

Who is online

Users browsing this forum: No registered users and 39 guests