Removed unused variable from output_reject_ctcp()

Also remove unnecessary tests for stuff and stuff->user - these are always
non-null when the callback is called.
This commit is contained in:
Kevin Easton
2015-06-25 11:45:09 +10:00
parent ee0cd23ae5
commit 5f4429bf7b

View File

@@ -3045,21 +3045,19 @@ int dcc_exempt_save(FILE *fptr)
*/
static void output_reject_ctcp (UserhostItem *stuff, char *nick, char *args)
{
char *nickname_requested;
char *nickname_recieved;
char *type;
char *description;
if (!stuff || !stuff->user || !strcmp(stuff->user, "<UNKNOWN>"))
{
char *nickname_recieved;
char *type;
char *description;
if (!strcmp(stuff->user, "<UNKNOWN>"))
return;
}
/*
* XXX This is, of course, a monsterous hack.
*/
nickname_requested = next_arg(args, &args);
type = next_arg(args, &args);
description = next_arg(args, &args);
nickname_recieved = stuff->nick;
next_arg(args, &args);
type = next_arg(args, &args);
description = next_arg(args, &args);
nickname_recieved = stuff->nick;
if (nickname_recieved && *nickname_recieved)
send_ctcp(CTCP_NOTICE, nickname_recieved, CTCP_DCC,