mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-04 01:23:13 +02:00
MAXPARA removal
This commit is contained in:
@@ -1101,3 +1101,4 @@ seen. gmtime warning still there
|
||||
- Moved around a lot of aClient/anUser members, hopefully wont cause
|
||||
segfaults
|
||||
- Fixed res.c not managing to pass the proper type of parameter to inet_ntoa ONCE
|
||||
- Lots of commands were using MAXPARA when they shouldnt have been
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
#ifdef PARAMH
|
||||
#include <sys/param.h>
|
||||
#endif
|
||||
|
||||
#if !defined(IN_ADDR)
|
||||
#include "sys.h"
|
||||
#endif
|
||||
|
||||
@@ -77,7 +77,7 @@ int m_adminchat_Init(int module_load)
|
||||
/*
|
||||
* We call our add_Command crap here
|
||||
*/
|
||||
add_Command(MSG_ADMINCHAT, TOK_ADMINCHAT, m_admins, MAXPARA);
|
||||
add_Command(MSG_ADMINCHAT, TOK_ADMINCHAT, m_admins, 1);
|
||||
return MOD_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ DLLFUNC int Mod_Init(int module_load)
|
||||
int m_away_Init(int module_load)
|
||||
#endif
|
||||
{
|
||||
add_Command(MSG_AWAY, TOK_AWAY, m_away, MAXPARA);
|
||||
add_Command(MSG_AWAY, TOK_AWAY, m_away, 1);
|
||||
return MOD_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
@@ -79,7 +79,7 @@ int m_kill_Init(int module_load)
|
||||
/*
|
||||
* We call our add_Command crap here
|
||||
*/
|
||||
add_Command(MSG_KILL, TOK_KILL, m_kill, MAXPARA);
|
||||
add_Command(MSG_KILL, TOK_KILL, m_kill, 2);
|
||||
return MOD_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
@@ -79,7 +79,7 @@ int m_kline_Init(int module_load)
|
||||
/*
|
||||
* We call our add_Command crap here
|
||||
*/
|
||||
add_Command(MSG_KLINE, TOK_KLINE, m_kline, MAXPARA);
|
||||
add_Command(MSG_KLINE, TOK_KLINE, m_kline, 2);
|
||||
return MOD_SUCCESS;
|
||||
|
||||
}
|
||||
|
||||
@@ -77,7 +77,7 @@ int m_nachat_Init(int module_load)
|
||||
/*
|
||||
* We call our add_Command crap here
|
||||
*/
|
||||
add_Command(MSG_NACHAT, TOK_NACHAT, m_nachat, MAXPARA);
|
||||
add_Command(MSG_NACHAT, TOK_NACHAT, m_nachat, 1);
|
||||
return MOD_SUCCESS;
|
||||
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ int m_quit_Init(int module_load)
|
||||
/*
|
||||
* We call our add_Command crap here
|
||||
*/
|
||||
add_CommandX(MSG_QUIT, TOK_QUIT, m_quit, MAXPARA, M_UNREGISTERED|M_USER);
|
||||
add_CommandX(MSG_QUIT, TOK_QUIT, m_quit, 1, M_UNREGISTERED|M_USER);
|
||||
return MOD_SUCCESS;
|
||||
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ int m_zline_Init(int module_load)
|
||||
/*
|
||||
* We call our add_Command crap here
|
||||
*/
|
||||
add_Command(MSG_ZLINE, TOK_ZLINE, m_zline, MAXPARA);
|
||||
add_Command(MSG_ZLINE, TOK_ZLINE, m_zline, 2);
|
||||
}
|
||||
|
||||
/* Is first run when server is 100% ready */
|
||||
|
||||
+6
-6
@@ -138,24 +138,24 @@ void init_CommandHash(void)
|
||||
add_CommandX(MSG_NICK, TOK_NICK, m_nick, MAXPARA, M_UNREGISTERED|M_USER|M_SERVER);
|
||||
add_CommandX(MSG_JOIN, TOK_JOIN, m_join, MAXPARA, M_USER);
|
||||
add_Command(MSG_ISON, TOK_ISON, m_ison, 1);
|
||||
add_CommandX(MSG_USER, TOK_USER, m_user, MAXPARA, M_UNREGISTERED|M_USER);
|
||||
add_CommandX(MSG_PART, TOK_PART, m_part, MAXPARA, M_USER);
|
||||
add_CommandX(MSG_USER, TOK_USER, m_user, 4, M_UNREGISTERED|M_USER);
|
||||
add_CommandX(MSG_PART, TOK_PART, m_part, 2, M_USER);
|
||||
add_Command(MSG_WATCH, TOK_WATCH, m_watch, 1);
|
||||
add_Command(MSG_USERHOST, TOK_USERHOST, m_userhost, 1);
|
||||
add_Command(MSG_LUSERS, TOK_LUSERS, m_lusers, MAXPARA);
|
||||
add_Command(MSG_TOPIC, TOK_TOPIC, m_topic, MAXPARA);
|
||||
add_Command(MSG_TOPIC, TOK_TOPIC, m_topic, 2);
|
||||
add_Command(MSG_INVITE, TOK_INVITE, m_invite, MAXPARA);
|
||||
add_Command(MSG_KICK, TOK_KICK, m_kick, MAXPARA);
|
||||
add_Command(MSG_KICK, TOK_KICK, m_kick, 3);
|
||||
add_Command(MSG_WALLOPS, TOK_WALLOPS, m_wallops, 1);
|
||||
add_CommandX(MSG_ERROR, TOK_ERROR, m_error, MAXPARA, M_UNREGISTERED|M_SERVER);
|
||||
add_CommandX(MSG_PROTOCTL, TOK_PROTOCTL, m_protoctl, MAXPARA, M_UNREGISTERED|M_SERVER|M_USER);
|
||||
add_CommandX(MSG_SERVER, TOK_SERVER, m_server, MAXPARA, M_UNREGISTERED|M_SERVER);
|
||||
add_Command(MSG_SQUIT, TOK_SQUIT, m_squit, MAXPARA);
|
||||
add_Command(MSG_SQUIT, TOK_SQUIT, m_squit, 2);
|
||||
add_Command(MSG_WHOWAS, TOK_WHOWAS, m_whowas, MAXPARA);
|
||||
add_Command(MSG_LIST, TOK_LIST, m_list, MAXPARA);
|
||||
add_Command(MSG_NAMES, TOK_NAMES, m_names, MAXPARA);
|
||||
add_Command(MSG_TRACE, TOK_TRACE, m_trace, MAXPARA);
|
||||
add_CommandX(MSG_PASS, TOK_PASS, m_pass, MAXPARA, M_UNREGISTERED|M_USER|M_SERVER);
|
||||
add_CommandX(MSG_PASS, TOK_PASS, m_pass, 1, M_UNREGISTERED|M_USER|M_SERVER);
|
||||
add_Command(MSG_TIME, TOK_TIME, m_time, MAXPARA);
|
||||
add_Command(MSG_CONNECT, TOK_CONNECT, m_connect, MAXPARA);
|
||||
add_CommandX(MSG_VERSION, TOK_VERSION, m_version, MAXPARA, M_UNREGISTERED|M_USER|M_SERVER);
|
||||
|
||||
Reference in New Issue
Block a user