Skip to content
Permalink
Browse files

Increase max characters for kick and ban reason to 128 (#1084)

Also remove unused BAN/KICK_REASON_LENGTH from client
  • Loading branch information...
StrixG authored and qaisjp committed Oct 22, 2019
1 parent 40ed8b5 commit fe2c3740a3a499ec70b7ba7fcce5afbd48b5dc38
Showing with 2 additions and 10 deletions.
  1. +0 −8 Client/mods/deathmatch/logic/Config.h
  2. +2 −2 Server/mods/deathmatch/Config.h
@@ -84,14 +84,6 @@ class CVaPassNext
#define MIN_DISCONNECT_REASON_LENGTH 1
#define MAX_DISCONNECT_REASON_LENGTH 127

// Max kick string length that can be sent
#define MIN_KICK_REASON_LENGTH 1
#define MAX_KICK_REASON_LENGTH 64

// Max ban string length that can be sent
#define MIN_BAN_REASON_LENGTH 1
#define MAX_BAN_REASON_LENGTH 64

// Couple of defines to ensure proper configuration
#if MAX_CHAT_LENGTH > 255
#error MAX_CHAT_LENGTH "macro can't exceed 255"
@@ -94,12 +94,12 @@ class CVaPassNext

// Max kick string length that can be sent
#define MIN_KICK_REASON_LENGTH 1
#define MAX_KICK_REASON_LENGTH 64
#define MAX_KICK_REASON_LENGTH 128
#define MAX_KICK_RESPONSIBLE_LENGTH 30

// Max ban string length that can be sent
#define MIN_BAN_REASON_LENGTH 1
#define MAX_BAN_REASON_LENGTH 64
#define MAX_BAN_REASON_LENGTH 128
#define MAX_BAN_RESPONSIBLE_LENGTH 30

// Couple of defines to ensure proper configuration

0 comments on commit fe2c374

Please sign in to comment.
You can’t perform that action at this time.