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:
@@ -571,11 +571,13 @@ static void ignore_list(char *nick)
|
||||
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)
|
||||
return -1;
|
||||
|
||||
if (!strncmp(type, "ALL", len))
|
||||
ret = IGNORE_ALL;
|
||||
else if (!strncmp(type, "MSGS", len))
|
||||
|
||||
Reference in New Issue
Block a user