121 |
|
char host[HOSTLEN + 1] = ""; |
122 |
|
struct split_nuh_item nuh; |
123 |
|
|
124 |
< |
/* dont let local clients overflow the b/e/I lists */ |
124 |
> |
/* Don't let local clients overflow the b/e/I lists */ |
125 |
|
if (MyClient(client_p)) |
126 |
|
{ |
127 |
|
num_mask = dlink_list_length(&chptr->banlist) + |
219 |
|
static int |
220 |
|
del_id(struct Channel *chptr, char *banid, unsigned int type) |
221 |
|
{ |
222 |
< |
dlink_list *list; |
223 |
< |
dlink_node *ban; |
222 |
> |
dlink_list *list = NULL; |
223 |
> |
dlink_node *ban = NULL; |
224 |
|
char name[NICKLEN + 1] = ""; |
225 |
|
char user[USERLEN + 1] = ""; |
226 |
|
char host[HOSTLEN + 1] = ""; |
420 |
|
|
421 |
|
/* Mode functions handle mode changes for a particular mode... */ |
422 |
|
static void |
423 |
< |
chm_nosuch(struct Client *source_p, |
424 |
< |
struct Channel *chptr, int parc, int *parn, |
423 |
> |
chm_nosuch(struct Client *source_p, struct Channel *chptr, int parc, int *parn, |
424 |
|
char **parv, int *errors, int alev, int dir, char c, unsigned int d) |
425 |
|
{ |
426 |
|
if (*errors & SM_ERR_UNKNOWN) |
431 |
|
} |
432 |
|
|
433 |
|
static void |
434 |
< |
chm_simple(struct Client *source_p, struct Channel *chptr, |
435 |
< |
int parc, int *parn, char **parv, int *errors, int alev, int dir, |
437 |
< |
char c, unsigned int d) |
434 |
> |
chm_simple(struct Client *source_p, struct Channel *chptr, int parc, int *parn, |
435 |
> |
char **parv, int *errors, int alev, int dir, char c, unsigned int d) |
436 |
|
{ |
437 |
|
if ((alev < CHACCESS_HALFOP) || |
438 |
|
((d == MODE_PRIVATE) && (alev < CHACCESS_CHANOP))) |
484 |
|
} |
485 |
|
|
486 |
|
static void |
487 |
< |
chm_registered(struct Client *source_p, struct Channel *chptr, |
488 |
< |
int parc, int *parn, char **parv, int *errors, int alev, int dir, |
491 |
< |
char c, unsigned int d) |
487 |
> |
chm_registered(struct Client *source_p, struct Channel *chptr, int parc, int *parn, |
488 |
> |
char **parv, int *errors, int alev, int dir, char c, unsigned int d) |
489 |
|
{ |
490 |
|
if (!IsServer(source_p) && !HasFlag(source_p, FLAGS_SERVICE)) |
491 |
|
{ |
596 |
|
} |
597 |
|
|
598 |
|
static void |
599 |
< |
chm_ban(struct Client *source_p, |
603 |
< |
struct Channel *chptr, int parc, int *parn, |
599 |
> |
chm_ban(struct Client *source_p, struct Channel *chptr, int parc, int *parn, |
600 |
|
char **parv, int *errors, int alev, int dir, char c, unsigned int d) |
601 |
|
{ |
602 |
|
char *mask = NULL; |
665 |
|
} |
666 |
|
|
667 |
|
static void |
668 |
< |
chm_except(struct Client *source_p, |
673 |
< |
struct Channel *chptr, int parc, int *parn, |
668 |
> |
chm_except(struct Client *source_p, struct Channel *chptr, int parc, int *parn, |
669 |
|
char **parv, int *errors, int alev, int dir, char c, unsigned int d) |
670 |
|
{ |
671 |
|
char *mask = NULL; |
735 |
|
} |
736 |
|
|
737 |
|
static void |
738 |
< |
chm_invex(struct Client *source_p, |
744 |
< |
struct Channel *chptr, int parc, int *parn, |
738 |
> |
chm_invex(struct Client *source_p, struct Channel *chptr, int parc, int *parn, |
739 |
|
char **parv, int *errors, int alev, int dir, char c, unsigned int d) |
740 |
|
{ |
741 |
|
char *mask = NULL; |
805 |
|
} |
806 |
|
|
807 |
|
static void |
808 |
< |
chm_voice(struct Client *source_p, |
815 |
< |
struct Channel *chptr, int parc, int *parn, |
808 |
> |
chm_voice(struct Client *source_p, struct Channel *chptr, int parc, int *parn, |
809 |
|
char **parv, int *errors, int alev, int dir, char c, unsigned int d) |
810 |
|
{ |
811 |
|
const char *opnick = NULL; |
862 |
|
|
863 |
|
#ifdef HALFOPS |
864 |
|
static void |
865 |
< |
chm_hop(struct Client *source_p, |
873 |
< |
struct Channel *chptr, int parc, int *parn, |
865 |
> |
chm_hop(struct Client *source_p, struct Channel *chptr, int parc, int *parn, |
866 |
|
char **parv, int *errors, int alev, int dir, char c, unsigned int d) |
867 |
|
{ |
868 |
|
const char *opnick = NULL; |
936 |
|
#endif |
937 |
|
|
938 |
|
static void |
939 |
< |
chm_op(struct Client *source_p, |
948 |
< |
struct Channel *chptr, int parc, int *parn, |
939 |
> |
chm_op(struct Client *source_p, struct Channel *chptr, int parc, int *parn, |
940 |
|
char **parv, int *errors, int alev, int dir, char c, unsigned int d) |
941 |
|
{ |
942 |
|
const char *opnick = NULL; |
995 |
|
} |
996 |
|
|
997 |
|
static void |
998 |
< |
chm_limit(struct Client *source_p, |
1008 |
< |
struct Channel *chptr, int parc, int *parn, |
998 |
> |
chm_limit(struct Client *source_p, struct Channel *chptr, int parc, int *parn, |
999 |
|
char **parv, int *errors, int alev, int dir, char c, unsigned int d) |
1000 |
|
{ |
1001 |
|
unsigned int i = 0; |
1052 |
|
} |
1053 |
|
|
1054 |
|
static void |
1055 |
< |
chm_key(struct Client *source_p, |
1066 |
< |
struct Channel *chptr, int parc, int *parn, |
1055 |
> |
chm_key(struct Client *source_p, struct Channel *chptr, int parc, int *parn, |
1056 |
|
char **parv, int *errors, int alev, int dir, char c, unsigned int d) |
1057 |
|
{ |
1058 |
|
unsigned int i = 0; |
1405 |
|
if (!member) |
1406 |
|
return CHACCESS_NOTONCHAN; |
1407 |
|
|
1408 |
< |
/* just to be sure.. */ |
1408 |
> |
/* Just to be sure.. */ |
1409 |
|
assert(source_p == member->client_p); |
1410 |
|
|
1411 |
|
if (has_member_flags(member, CHFL_CHANOP)) |
1442 |
|
mbl = snprintf(modebuf, sizeof(modebuf), ":%s TMODE %lu %s ", source_p->id, |
1443 |
|
(unsigned long)chptr->channelts, chptr->chname); |
1444 |
|
|
1445 |
< |
/* loop the list of modes we have */ |
1445 |
> |
/* Loop the list of modes we have */ |
1446 |
|
for (i = 0; i < mode_count; ++i) |
1447 |
|
{ |
1448 |
|
if (mode_changes[i].letter == 0) /* XXX: can it ever happen? */ |