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:
Kevin Easton
2017-01-21 14:23:57 +11:00
parent 69296c2c5a
commit 27b2f3e939
2 changed files with 5 additions and 3 deletions

View File

@@ -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))