Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/m_nick.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ extern int del_dccallow(aClient *, aClient *, int);
extern int is_xflags_exempted(aClient *sptr, aChannel *chptr);
extern int verbose_to_relaychan(aClient *sptr, aChannel *chptr, char *cmd, char *reason);

extern int user_modes[];
extern long user_modes[];

/*
* * 'do_nick_name' ensures that the given parameter (nick) is * really
Expand Down Expand Up @@ -412,7 +412,7 @@ int m_nick(aClient *cptr, aClient *sptr, int parc, char *parv[])
(void) add_to_client_hash_table(nick, sptr);
if (parc >= 10)
{
int *s, flag;
long *s, flag;
char *m;

/* parse the usermodes -orabidoo */
Expand Down Expand Up @@ -531,7 +531,7 @@ int m_nick(aClient *cptr, aClient *sptr, int parc, char *parv[])
/* If it changed nicks, -r it */
if ((sptr->umode & UMODE_r) && (mycmp(parv[0], nick) != 0))
{
unsigned int oldumode;
long oldumode;
char mbuf[BUFSIZE];

oldumode = sptr->umode;
Expand Down
4 changes: 2 additions & 2 deletions src/m_rwho.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

#include "pcre.h"

extern int user_modes[];
extern long user_modes[];
extern Link *find_channel_link(Link *, aChannel *);

/* max capturing submatches to allow in all fields combined */
Expand Down Expand Up @@ -178,7 +178,7 @@ static struct {
aChannel *chptr; /* search in channel */
char *host_pat[2]; /* wildcard host pattern */
int (*host_func[2])(char *, char *); /* host match function */
int umodes[2]; /* usermodes */
long umodes[2]; /* usermodes */
unsigned stype; /* services type */
unsigned ip_family[2]; /* CIDR family to match */
int ip_cidr_bits[2]; /* CIDR bits to match */
Expand Down
5 changes: 3 additions & 2 deletions src/m_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ extern void fakeserver_sendserver(aClient *);
extern void fakelusers_sendlock(aClient *);
extern void reset_sock_opts(int, int);
extern void spamfilter_sendserver(aClient *acptr);
extern int user_modes[];
extern long user_modes[];
extern int uhm_type;
extern int uhm_umodeh;

Expand All @@ -44,7 +44,8 @@ static void sendnick_TS(aClient *cptr, aClient *acptr)
{
ServicesTag *servicestag;
static char ubuf[54];
int *s, flag, i;
long *s, flag;
int i;

if (IsPerson(acptr))
{
Expand Down
9 changes: 5 additions & 4 deletions src/m_services.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#include "memcount.h"

/* Externally defined stuffs */
extern int user_modes[];
extern long user_modes[];
extern int check_channelname(aClient *, unsigned char *); /* for m_aj */
extern aChannel *get_channel(aClient *, char *, int, int *); /* for m_aj */
extern Link *find_channel_link(Link *, aChannel *); /* for m_aj */
Expand Down Expand Up @@ -224,7 +224,7 @@ int m_svsnick(aClient *cptr, aClient *sptr, int parc, char *parv[])

if(acptr->umode & UMODE_r)
{
unsigned int oldumode;
long oldumode;
char mbuf[BUFSIZE];

oldumode = acptr->umode;
Expand Down Expand Up @@ -355,7 +355,8 @@ int channel_svsmode(aClient *cptr, aClient *sptr, int parc, char *parv[])
*/
int m_svsmode(aClient *cptr, aClient *sptr, int parc, char *parv[])
{
int flag, *s, what, oldumode;
long flag, *s, oldumode;
int what;
char *m, *modes, *optarg;
aClient *acptr;
ts_val ts = 0;
Expand Down Expand Up @@ -708,7 +709,7 @@ int m_svstag(aClient *cptr, aClient *sptr, int parc, char *parv[])
{
aClient *acptr;
ServicesTag *servicestag;
int *s, flag;
long *s, flag;
char *m;
long ts;

Expand Down
2 changes: 1 addition & 1 deletion src/m_who.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ int build_searchopts(aClient *, int, char **);
int chk_who(aClient *, aClient *, int);

/* Externally defined stuffs */
extern int user_modes[];
extern long user_modes[];

extern Link *find_channel_link(Link *, aChannel *);

Expand Down
12 changes: 7 additions & 5 deletions src/s_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ extern int uhm_type;
extern int uhm_umodeh;

static char buf[BUFSIZE], buf2[BUFSIZE];
int user_modes[] =
long user_modes[] =
{
UMODE_o, 'o',
UMODE_O, 'O',
Expand Down Expand Up @@ -2937,7 +2937,7 @@ m_pong(aClient *cptr, aClient *sptr, int parc, char *parv[])
* -Dianora
*/
static inline void
send_umode_out(aClient *cptr, aClient *sptr, int old)
send_umode_out(aClient *cptr, aClient *sptr, long old)
{
aClient *acptr;
DLink *lp;
Expand Down Expand Up @@ -3039,7 +3039,7 @@ int m_oper(aClient *cptr, aClient *sptr, int parc, char *parv[])

if (StrEq(encr, aoper->passwd))
{
int old = (sptr->umode & ALL_UMODES);
long old = (sptr->umode & ALL_UMODES);

if(svsnoop)
{
Expand Down Expand Up @@ -3282,7 +3282,8 @@ m_ison(aClient *cptr, aClient *sptr, int parc, char *parv[])
int
m_umode(aClient *cptr, aClient *sptr, int parc, char *parv[])
{
int flag, *s, setflags, what = MODE_ADD, badflag = NO;
long flag, *s, setflags;
int what = MODE_ADD, badflag = NO;
char **p, *m;
aClient *acptr;

Expand Down Expand Up @@ -3542,7 +3543,8 @@ m_umode(aClient *cptr, aClient *sptr, int parc, char *parv[])
void
send_umode(aClient *cptr, aClient *sptr, long old, long sendmask, char *umode_buf, int bufsize)
{
int *s, flag, what = MODE_NULL;
long *s, flag;
int what = MODE_NULL;
char *m;
int len;

Expand Down
Loading