Change ignore_type() arguments to (const char *, size_t)
This just changes the arguments to match the strncmp() calls in the function.
This commit is contained in:
@@ -57,7 +57,7 @@ int check_ignore (char *, char *, char *, long, char *);
|
|||||||
void ignore (char *, char *, char *, char *);
|
void ignore (char *, char *, char *, char *);
|
||||||
void tignore (char *, char *, char *, char *);
|
void tignore (char *, char *, char *, char *);
|
||||||
void ignore_nickname (char *, long, int);
|
void ignore_nickname (char *, long, int);
|
||||||
long ignore_type (char *, int);
|
long ignore_type(const char *, size_t);
|
||||||
int check_is_ignored(char *);
|
int check_is_ignored(char *);
|
||||||
char *get_ignores_by_pattern (char *patterns, int covered);
|
char *get_ignores_by_pattern (char *patterns, int covered);
|
||||||
int get_type_by_desc (char *type, int *do_mask, int *dont_mask);
|
int get_type_by_desc (char *type, int *do_mask, int *dont_mask);
|
||||||
|
|||||||
@@ -571,11 +571,13 @@ static void ignore_list(char *nick)
|
|||||||
bitchsay("There are no nicknames or channels being ignored");
|
bitchsay("There are no nicknames or channels being ignored");
|
||||||
}
|
}
|
||||||
|
|
||||||
long ignore_type (char *type, int len)
|
long ignore_type(const char *type, size_t len)
|
||||||
{
|
{
|
||||||
long ret = -1;
|
long ret = -1;
|
||||||
|
|
||||||
if (!type || !*type)
|
if (!type || !*type)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if (!strncmp(type, "ALL", len))
|
if (!strncmp(type, "ALL", len))
|
||||||
ret = IGNORE_ALL;
|
ret = IGNORE_ALL;
|
||||||
else if (!strncmp(type, "MSGS", len))
|
else if (!strncmp(type, "MSGS", len))
|
||||||
|
|||||||
Reference in New Issue
Block a user