Remove exported function create_server_list()
The guts of this function doesn't need to be in server.c - it only uses extern server functions so it makes sense just to move it into the body of function_servers(), the only caller. That means it's no longer accessible for loadable modules, but it isn't much use for them anyway. They can always directly access the server list if they need that info. (Requires rolling the module table version).
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
* if we change the table below, we change this module number to the
|
||||
* current date (YYYYMMDDxx where xx is a serial number).
|
||||
*/
|
||||
#define MODULE_VERSION 2017071002UL
|
||||
#define MODULE_VERSION 2017071701UL
|
||||
|
||||
#include "struct.h"
|
||||
|
||||
@@ -253,7 +253,6 @@ enum FUNCTION_VALUE
|
||||
ADD_TO_SERVER_LIST,
|
||||
BUILD_SERVER_LIST,
|
||||
DISPLAY_SERVER_LIST,
|
||||
CREATE_SERVER_LIST,
|
||||
PARSE_SERVER_INFO,
|
||||
SERVER_LIST_SIZE,
|
||||
/* misc server/nickname functions */
|
||||
|
||||
@@ -499,7 +499,6 @@ extern Function_ptr *global;
|
||||
#define add_to_server_list (*(void (*)(char *, int , char *, char *, char *, int , int ))global[ADD_TO_SERVER_LIST])
|
||||
#define build_server_list (*(int (*)(char *))global[BUILD_SERVER_LIST])
|
||||
#define display_server_list (*(void (*)(void ))global[DISPLAY_SERVER_LIST])
|
||||
#define create_server_list (*(char *(*)(char *))global[CREATE_SERVER_LIST])
|
||||
#define parse_server_info (*(void (*)(char *, char **, char **, char **, char **))global[PARSE_SERVER_INFO])
|
||||
#define server_list_size (*(int (*)(void ))global[SERVER_LIST_SIZE])
|
||||
|
||||
|
||||
@@ -216,7 +216,6 @@ extern SGroup *server_group_list;
|
||||
char *BX_get_server_itsname (int);
|
||||
char *get_server_pass (int);
|
||||
int BX_find_in_server_list (char *, int);
|
||||
char *BX_create_server_list (char *);
|
||||
void BX_set_server_motd (int, int);
|
||||
int BX_get_server_motd (int);
|
||||
int BX_get_server_operator (int);
|
||||
|
||||
Reference in New Issue
Block a user