Remove unused 'unlink' argument from check_whowas_nick_buffer()

Every caller was passing 0 for unlink, so remove it.  This simplifies the function.

Also change the nick and channel arguments to const char *.
This commit is contained in:
Kevin Easton
2017-02-22 22:28:17 +11:00
parent 0c721de2a5
commit 2363ea709d
4 changed files with 10 additions and 19 deletions

View File

@@ -3842,7 +3842,7 @@ void userhost_ignore (UserhostItem *stuff, char *nick1, char *args)
arg = next_arg(args, &args);
if (!stuff || !stuff->nick || !strcmp(stuff->user, "<UNKNOWN>") || my_stricmp(stuff->nick, nick1))
{
if ((whowas = check_whowas_nick_buffer(nick1, arg, 0)))
if ((whowas = check_whowas_nick_buffer(nick1, arg)))
{
bitchsay("Using WhoWas info for %s of %s ", arg, nick1);
user = host; host = strchr(host, '@'); *host++ = 0;