Forum

Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    Join Date
    June 2011
    Posts
    14

    Solved How prohibit special characters in my TS3?

    Hello, I have a server TS3 and I have a problem that users use a lot of special characters such as "butters 9 (͡ ๏ ̯͡ ๏) 6" and I would like to somo could use regular characters, how I can ban it?

    Thank you.

  2. #2
    Join Date
    June 2008
    Posts
    18,305
    Here is an example for your ban. It bans these characters.
    Code:
    .*((๏)|(̯)|(͡)).*
    You can get more informations about regular expressions here
    http://doc.qt.nokia.com/latest/qregexp.html
    When sending me private messages: Please make sure to include reference link to your forum thread or post.

    TeamSpeak FAQ || What should i report, when i open a client thread?

  3. #3
    Join Date
    June 2011
    Posts
    14
    Quote Originally Posted by dante696 View Post
    Here is an example for your ban. It bans these characters.
    Code:
    .*((๏)|(̯)|(͡)).*
    You can get more informations about regular expressions here
    http://doc.qt.nokia.com/latest/qregexp.html
    Where is the option in the TS3 to make the ban?

  4. #4
    Join Date
    June 2008
    Posts
    18,305
    Create a ba nfor nicknbame only under Tools > Ban List > Press "Add" and now enter the nickname or Character.
    You can use this too for a ban. but use ( ) between each special character or users with numbers will be banned to.
    Code:
    .*[(๏)(̯)(͡)].*
    When sending me private messages: Please make sure to include reference link to your forum thread or post.

    TeamSpeak FAQ || What should i report, when i open a client thread?

  5. #5
    Join Date
    February 2009
    Location
    South Florida
    Posts
    19
    dante696

    Following that logic this code would ban nicknames that contain these special characters correct.

    Code:
    .*[(>)(<)(!)(@)(#)($)(%)(^)(&)(*)(|)(\)(])([)({)(})(;)(:)(')(")(,)(.)(/)(?)(~)(`)].*

  6. #6
    Join Date
    June 2008
    Posts
    18,305
    Your symbols here don't need () they are standard ascii characters. But your old example is not.
    Please read how to ban with regular expressions. You can't ban / or . or \ or | or * or [] or ? that easy. They have a meaning in a regexpression. Please red the documantion.
    When sending me private messages: Please make sure to include reference link to your forum thread or post.

    TeamSpeak FAQ || What should i report, when i open a client thread?

  7. #7
    Join Date
    May 2006
    Location
    Europe/Czech Rep.
    Posts
    1,616
    Quote Originally Posted by dante696 View Post
    Your symbols here don't need () they are standard ascii characters. But your old example is not.
    Please read how to ban with regular expressions. You can't ban / or . or \ or | or * or [] or ? that easy. They have a meaning in a regexpression. Please read the documantion.
    you can, when you escape it.
    \.
    \*
    \/
    \\

    #okey dante my bad for reading, not properly
    Last edited by Tomas; July 1st, 2011 at 10:17 PM. Reason: #

  8. #8
    Join Date
    June 2008
    Posts
    18,305
    I did not say, that he can't ban them, I said not that easy.
    When sending me private messages: Please make sure to include reference link to your forum thread or post.

    TeamSpeak FAQ || What should i report, when i open a client thread?

  9. #9
    Join Date
    June 2011
    Posts
    14
    You got it, just left me with this code;.*[#!"$%&/()=?].*

    ty Gracias

  10. #10
    Join Date
    July 2008
    Location
    Germany
    Posts
    94
    What do i have to write in ban, when i only wants to have the following special chars: / @ ( )

    Thanks in advance,

    ToM

  11. #11
    Join Date
    June 2008
    Posts
    18,305
    Ban .*[/@()].* and all your symbols are banend.
    with an special character like € your ban would look like

    .*((//)|(@)|(/()|(/))|(€)).*
    Last edited by dante696; August 25th, 2011 at 01:38 PM. Reason: missed to escape some chars
    When sending me private messages: Please make sure to include reference link to your forum thread or post.

    TeamSpeak FAQ || What should i report, when i open a client thread?

  12. #12
    Join Date
    July 2008
    Location
    Germany
    Posts
    94
    Thanks mate! But i've done a misspelling: I only wants to allow these special characters: / @ ( ) and ban the whole rest of it...

    What i don't understand: When do i have to make a bracket around a special char and when not?
    This is very difficult for a normal human being (not a programmer).
    Could this be explained very good or better: Could this made easilier to the customer?

    Another Question: If i want to save my name, then i have to make this entry: regular expression: .*[Nn][Ii][Gg][Hh][Tt][Ww][Ii][NN][Gg].*
    Am I right?

    Thanks in advance,

    ToM
    Last edited by Nightwing; August 25th, 2011 at 01:00 AM.

  13. #13
    Join Date
    June 2008
    Posts
    18,305
    Please read the documantation for RegExpressions and search for Sets of Characters.
    This explains to exclude chars and ban everything else. (I never tried it)

    There is a small typo in your second ban. its Nn not NN.
    When sending me private messages: Please make sure to include reference link to your forum thread or post.

    TeamSpeak FAQ || What should i report, when i open a client thread?

  14. #14
    Join Date
    July 2008
    Location
    Germany
    Posts
    94
    Wow! Many thanks! But as i said above: It's too hard for a non-programmer :P
    I've added now the following banrule (regular expression): .*[><!#$%^&*|\{};:'",.?~`].*
    Should be okay, cause there are only ASCII chars?

    Am I right, that now special chars like only must be added in brackets like this: ()?
    .*[()><!#$%^&*|\{};:'",.?~`].*

    Thanks for your patience!

    ToM

  15. #15
    Join Date
    June 2008
    Posts
    18,305
    This ban would not work correctly.
    Option 1: Create a second ban and add
    Code:
    .*(&#174;).*
    Or Option 2: change the ban rule to
    Code:
    .*(()|(>)|(<)|(!)|(#)|(\$)|(%)|(\^)|(&)|(\*)|(\|)|(\\)|(\{)|(\})|(;)|(:)|(')|(,)|(\.)|(\?)|(~)|(`)).*
    Your ban has too look like this, when you add such ascii symbols.
    The ( and ) can't be used correctly in combination, when they are in these brackets [ ].

    And you have to escape your characters, when you choose option1.


    As mentioned in the documantation
    $, (,), *, +, ., ?, [,], ^, {, | and } are special characters and must be escaped per \ in front of that symbol.
    When sending me private messages: Please make sure to include reference link to your forum thread or post.

    TeamSpeak FAQ || What should i report, when i open a client thread?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [On Todo] Special Characters invalidate token when used in an invitation link
    By Kamikaze28 in forum Bug Reports [EN/DE]
    Replies: 4
    Last Post: February 13th, 2015, 05:26 PM
  2. [Not possible] Restrict Special Characters in channel names
    By Spaldo in forum Windows
    Replies: 5
    Last Post: October 27th, 2014, 06:51 PM
  3. How to restrict special characters in name
    By Empor_CZ in forum Linux / FreeBSD
    Replies: 11
    Last Post: December 11th, 2012, 11:33 AM
  4. Forbidd special characters
    By mythology1986 in forum Server Support
    Replies: 2
    Last Post: September 6th, 2010, 08:24 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •