commit - c2ac1ad3ba67a36018e5b4833928d5f2b5e658ef
commit + 9260759cec948b5b3f1a5e84c435d7afe4313718
blob - 4d982c7aa18f607c9f573ed245f151bf29393405
blob + 2613a358e9ffcc046a31f10c9853685ace688945
--- src/ngircd/defines.h
+++ src/ngircd/defines.h
/* Defaults and limits for IRC commands */
/** 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 */
-#define MAX_CMODES_ARG 5
+#define MAX_HNDL_MODES_ARG 5
#endif
blob - c2412651121a69220a407d60f850d9c4ef4048b0
blob + 8c87d9320789fa00b1b277fcece7171c6c2f1777
--- src/ngircd/irc-info.c
+++ src/ngircd/irc-info.c
if (last < 0)
last = 0;
- max = DEFAULT_WHOWAS;
+ max = DEF_RPL_WHOWAS;
if (Req->argc > 1) {
max = atoi(Req->argv[1]);
if (max < 1)
return IRC_WriteStrClient(Client, RPL_ISUPPORT2_MSG, Client_ID(Client),
CHANNEL_NAME_LEN - 1, Conf_MaxNickLength - 1,
COMMAND_LEN - 23, CLIENT_AWAY_LEN - 1,
- COMMAND_LEN - 113, MAX_CMODES_ARG);
+ COMMAND_LEN - 113, MAX_HNDL_MODES_ARG);
} /* IRC_Send_ISUPPORT */
blob - 7eb81cfad680b19732518c106c6ccceedbda4c40
blob + 0c63e7277b2fc3a6a2a172cc96fa07c9b9aa478d
--- src/ngircd/irc-mode.c
+++ src/ngircd/irc-mode.c
Client_ID(Origin), Channel_Name(Channel));
break;
case 'k': /* Channel key */
- if (mode_arg_count++ >= MAX_CMODES_ARG)
+ if (mode_arg_count++ >= MAX_HNDL_MODES_ARG)
goto chan_exit;
if (!set) {
if (modeok)
}
break;
case 'l': /* Member limit */
- if (mode_arg_count++ >= MAX_CMODES_ARG)
+ if (mode_arg_count++ >= MAX_HNDL_MODES_ARG)
goto chan_exit;
if (!set) {
if (modeok)
/* --- Channel lists --- */
case 'I': /* Invite lists */
case 'b': /* Ban lists */
- if (mode_arg_count++ >= MAX_CMODES_ARG)
+ if (mode_arg_count++ >= MAX_HNDL_MODES_ARG)
goto chan_exit;
if (arg_arg > mode_arg) {
/* modify list */