Forum

Results 1 to 6 of 6
  1. #1
    Join Date
    June 2011
    Posts
    8

    Max channel name/description/message/poke length

    Sorry for my bad English

    Hi,
    i programing some application and i need some info. Can i anywhere find max length of channel name, channel description, text message etc.? I know its hard-coded in app, but i cant find that info anywhere.

    Thanks for help
    Kledr

  2. #2
    Join Date
    September 2012
    Posts
    6,078
    Quote Originally Posted by pluginsdk/include/public_definitions.h
    //limited length, measured in characters
    #define TS3_MAX_SIZE_CHANNEL_NAME 40
    #define TS3_MAX_SIZE_VIRTUALSERVER_NAME 64
    #define TS3_MAX_SIZE_REASON_MESSAGE 80

    //limited length, measured in bytes (utf8 encoded)
    #define TS3_MAX_SIZE_TEXTMESSAGE 1024
    #define TS3_MAX_SIZE_CHANNEL_TOPIC 255
    #define TS3_MAX_SIZE_CHANNEL_DESCRIPTION 8192
    #define TS3_MAX_SIZE_VIRTUALSERVER_WELCOMEMESSAGE 1024
    From the pluginsdk headers delivered with each client release.
    More can be found in the public_rare_definitions.h header:
    Quote Originally Posted by pluginsdk/include/public_rare_definitions.h
    //limited length, measured in characters
    #define TS3_MAX_SIZE_CLIENT_NICKNAME_NONSDK 30
    #define TS3_MIN_SIZE_CLIENT_NICKNAME_NONSDK 3
    #define TS3_MAX_SIZE_AWAY_MESSAGE 80
    #define TS3_MAX_SIZE_GROUP_NAME 30
    #define TS3_MAX_SIZE_TALK_REQUEST_MESSAGE 50
    #define TS3_MAX_SIZE_COMPLAIN_MESSAGE 200
    #define TS3_MAX_SIZE_CLIENT_DESCRIPTION 200
    #define TS3_MAX_SIZE_HOST_MESSAGE 200
    #define TS3_MAX_SIZE_POKE_MESSAGE 100
    #define TS3_MAX_SIZE_OFFLINE_MESSAGE 4096
    #define TS3_MAX_SIZE_OFFLINE_MESSAGE_SUBJECT 200

  3. #3
    Join Date
    June 2011
    Posts
    8
    Thanks, that is for what i looking.

  4. #4
    Join Date
    October 2011
    Posts
    3
    Note that those limits are in bytes, not characters (some char's use several bytes, though most standard char's use 1 byte). So if you're checking the length of a string or char array, the best way is to convert it to a byte array and check the size of that.

  5. #5
    Join Date
    November 2017
    Posts
    2
    is it possible to increase those sizes?

  6. #6
    Join Date
    June 2011
    Location
    Germany
    Posts
    4,351
    No, it isn't.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [Not possible] Changing Description length limitation
    By GTXPlayer in forum General Questions
    Replies: 1
    Last Post: August 24th, 2015, 11:26 PM
  2. [Suggestion/Request] Poke length
    By Sparkz023 in forum Suggestions and Feedback
    Replies: 2
    Last Post: August 27th, 2013, 01:41 PM
  3. Change length of Host Message
    By UnknownTBeast in forum Windows
    Replies: 1
    Last Post: February 11th, 2011, 11:58 AM
  4. [Fixed] [CR] Increase length of ban/kick message
    By PeterW in forum Suggestions and Feedback
    Replies: 4
    Last Post: February 7th, 2010, 06:00 PM

Tags for this Thread

Posting Permissions

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