This change should not break extban modules, and should need some more extensive testing.
- Removed some more confusion in source (module IRC commands vs IRC commands)
- Changed IRCCommand::friend into IRCCommand::partner
+- Removed an odd declaration in common.h regarding find_user_link
+- Changed make_virthost prototype to not include a C++ keyword
#endif
-extern struct SLink *find_user_link( /* struct SLink *, struct Client * */ );
-
/*
* Protocol support text. DO NO CHANGE THIS unless you know what
* you are doing.
extern aClient *find_server_by_base64(char *b64);
extern int is_chanownprotop(aClient *cptr, aChannel *chptr);
extern int is_skochanop(aClient *cptr, aChannel *chptr);
-extern char *make_virthost(aClient *sptr, char *curr, char *new, int mode);
+extern char *make_virthost(aClient *sptr, char *curr, char *newhost, int mode);
extern int channel_canjoin(aClient *sptr, char *name);
extern char *collapse(char *pattern);
extern void dcc_sync(aClient *sptr);
#include "h.h"
/* mode = 0, just use strncpyzt, 1 = Realloc new and return new pointer */
-char *make_virthost(aClient *sptr, char *curr, char *new, int mode)
+char *make_virthost(aClient *sptr, char *curr, char *newhost, int mode)
{
char host[256], *mask, *x, *p, *q;
if (mode == 0)
{
- strlcpy(new, mask, HOSTLEN + 1);
+ strlcpy(newhost, mask, HOSTLEN + 1);
return NULL;
}
- if (new)
- MyFree(new);
+ if (newhost)
+ MyFree(newhost);
x = strdup(mask);
return x;
}