Browse Source

- Raised the buffer size in clif_MainChatMessage to 200, removed the message length in atcommand_main.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6197 54d463be-8e91-2dee-dedb-b68131a5f0ec
skotlex 19 years ago
parent
commit
ffce65e7bf
2 changed files with 1 additions and 4 deletions
  1. 0 3
      src/map/atcommand.c
  2. 1 1
      src/map/clif.c

+ 0 - 3
src/map/atcommand.c

@@ -10110,9 +10110,6 @@ int atcommand_main(
 {
 	if(strlen(message) > 0) {
 
-		if(strlen(message) > 128)
-			return -1;
-
 		if(strcmpi(message, "on") == 0) {
 			if(!sd->state.mainchat) {
 				sd->state.mainchat = 1;

+ 1 - 1
src/map/clif.c

@@ -4802,7 +4802,7 @@ void clif_GlobalMessage(struct block_list *bl,char *message)
  */
 void clif_MainChatMessage(char* message) {
 
-	char buf[128];
+	char buf[200];
 	int len;
 	
 	if(!message)