mirror of
				https://github.com/osmarks/ngircd.git
				synced 2025-10-29 21:13:01 +00:00 
			
		
		
		
	DEFAULT_WHOWAS->DEF_RPL_WHOWAS; MAX_CMODES_ARG->MAX_HNDL_MODES_ARG
To streamline naming, in preparation for MAX_RPL_WHO and MAX_RPL_WHOWAS :-)
This commit is contained in:
		| @@ -179,10 +179,10 @@ | |||||||
| /* Defaults and limits for IRC commands */ | /* Defaults and limits for IRC commands */ | ||||||
|  |  | ||||||
| /** Default count of WHOWAS command replies */ | /** Default count of WHOWAS command replies */ | ||||||
| #define DEFAULT_WHOWAS 5 | #define DEF_RPL_WHOWAS 5 | ||||||
|  |  | ||||||
| /** Max. number of channel modes with arguments per MODE command */ | /** Max. number of channel modes with arguments per MODE command */ | ||||||
| #define MAX_CMODES_ARG 5 | #define MAX_HNDL_MODES_ARG 5 | ||||||
|  |  | ||||||
|  |  | ||||||
| #endif | #endif | ||||||
|   | |||||||
| @@ -1306,7 +1306,7 @@ IRC_WHOWAS( CLIENT *Client, REQUEST *Req ) | |||||||
| 	if (last < 0) | 	if (last < 0) | ||||||
| 		last = 0; | 		last = 0; | ||||||
|  |  | ||||||
| 	max = DEFAULT_WHOWAS; | 	max = DEF_RPL_WHOWAS; | ||||||
| 	if (Req->argc > 1) { | 	if (Req->argc > 1) { | ||||||
| 		max = atoi(Req->argv[1]); | 		max = atoi(Req->argv[1]); | ||||||
| 		if (max < 1) | 		if (max < 1) | ||||||
| @@ -1568,7 +1568,7 @@ IRC_Send_ISUPPORT(CLIENT * Client) | |||||||
| 	return IRC_WriteStrClient(Client, RPL_ISUPPORT2_MSG, Client_ID(Client), | 	return IRC_WriteStrClient(Client, RPL_ISUPPORT2_MSG, Client_ID(Client), | ||||||
| 				  CHANNEL_NAME_LEN - 1, Conf_MaxNickLength - 1, | 				  CHANNEL_NAME_LEN - 1, Conf_MaxNickLength - 1, | ||||||
| 				  COMMAND_LEN - 23, CLIENT_AWAY_LEN - 1, | 				  COMMAND_LEN - 23, CLIENT_AWAY_LEN - 1, | ||||||
| 				  COMMAND_LEN - 113, MAX_CMODES_ARG); | 				  COMMAND_LEN - 113, MAX_HNDL_MODES_ARG); | ||||||
| } /* IRC_Send_ISUPPORT */ | } /* IRC_Send_ISUPPORT */ | ||||||
|  |  | ||||||
|  |  | ||||||
|   | |||||||
| @@ -491,7 +491,7 @@ Channel_Mode(CLIENT *Client, REQUEST *Req, CLIENT *Origin, CHANNEL *Channel) | |||||||
| 					Client_ID(Origin), Channel_Name(Channel)); | 					Client_ID(Origin), Channel_Name(Channel)); | ||||||
| 			break; | 			break; | ||||||
| 		case 'k': /* Channel key */ | 		case 'k': /* Channel key */ | ||||||
| 			if (mode_arg_count++ >= MAX_CMODES_ARG) | 			if (mode_arg_count++ >= MAX_HNDL_MODES_ARG) | ||||||
| 				goto chan_exit; | 				goto chan_exit; | ||||||
| 			if (!set) { | 			if (!set) { | ||||||
| 				if (modeok) | 				if (modeok) | ||||||
| @@ -527,7 +527,7 @@ Channel_Mode(CLIENT *Client, REQUEST *Req, CLIENT *Origin, CHANNEL *Channel) | |||||||
| 			} | 			} | ||||||
| 			break; | 			break; | ||||||
| 		case 'l': /* Member limit */ | 		case 'l': /* Member limit */ | ||||||
| 			if (mode_arg_count++ >= MAX_CMODES_ARG) | 			if (mode_arg_count++ >= MAX_HNDL_MODES_ARG) | ||||||
| 				goto chan_exit; | 				goto chan_exit; | ||||||
| 			if (!set) { | 			if (!set) { | ||||||
| 				if (modeok) | 				if (modeok) | ||||||
| @@ -639,7 +639,7 @@ Channel_Mode(CLIENT *Client, REQUEST *Req, CLIENT *Origin, CHANNEL *Channel) | |||||||
| 		/* --- Channel lists --- */ | 		/* --- Channel lists --- */ | ||||||
| 		case 'I': /* Invite lists */ | 		case 'I': /* Invite lists */ | ||||||
| 		case 'b': /* Ban lists */ | 		case 'b': /* Ban lists */ | ||||||
| 			if (mode_arg_count++ >= MAX_CMODES_ARG) | 			if (mode_arg_count++ >= MAX_HNDL_MODES_ARG) | ||||||
| 				goto chan_exit; | 				goto chan_exit; | ||||||
| 			if (arg_arg > mode_arg) { | 			if (arg_arg > mode_arg) { | ||||||
| 				/* modify list */ | 				/* modify list */ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Alexander Barton
					Alexander Barton