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

@@ -305,7 +305,7 @@ void userhost_unban(UserhostItem *stuff, char *nick1, char *args)
if (!stuff || !stuff->nick || !strcmp(stuff->user, "<UNKNOWN>") || my_stricmp(stuff->nick, nick1))
{
if ((whowas = check_whowas_nick_buffer(nick1, args, 0)))
if ((whowas = check_whowas_nick_buffer(nick1, args)))
{
malloc_sprintf(&host, "%s!%s", whowas->nicklist->nick, whowas->nicklist->host);
bitchsay("Using WhoWas info for unban of %s ", nick1);
@@ -369,7 +369,7 @@ void userhost_ban(UserhostItem *stuff, char *nick1, char *args)
if (!stuff || !stuff->nick || !strcmp(stuff->user, "<UNKNOWN>") || my_stricmp(stuff->nick, nick1))
{
if (channel && (whowas = check_whowas_nick_buffer(nick1, channel, 0)))
if (channel && (whowas = check_whowas_nick_buffer(nick1, channel)))
{
nick = whowas->nicklist->nick;
user = m_strdup(clear_server_flags(whowas->nicklist->host));