int create_socket_client(struct uplinkNode *target);
void close_socket(void);
-typedef void (*exit_func_t)(void);
-void reg_exit_func(exit_func_t handler);
+typedef void (*exit_func_t)(void *extra);
+void reg_exit_func(exit_func_t handler, void *extra);
void call_exit_funcs(void);
char *mysep(char **sepstr, char *delim);
int match_ircglob(const char *text, const char *glob);
#define MATCH_USENICK 1
#define MATCH_VISIBLE 2
-int user_matches_glob(struct userNode *user, const char *glob, int flags);
+int user_matches_glob(struct userNode *user, const char *glob, int flags, int shared);
int is_overmask(char *mask);