<RoomNameAvoidChars> not working.

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

Moderators: Lapo, Bax

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

<RoomNameAvoidChars> not working.

Post by GalaxyDoomMaster »

<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: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: <RoomNameAvoidChars> not working.

Post by Lapo »

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.

Post by GalaxyDoomMaster »

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: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: <RoomNameAvoidChars> not working.

Post by Lapo »

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.

Post by GalaxyDoomMaster »

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