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:
20
source/dcc.c
20
source/dcc.c
@@ -3045,21 +3045,19 @@ int dcc_exempt_save(FILE *fptr)
|
|||||||
*/
|
*/
|
||||||
static void output_reject_ctcp (UserhostItem *stuff, char *nick, char *args)
|
static void output_reject_ctcp (UserhostItem *stuff, char *nick, char *args)
|
||||||
{
|
{
|
||||||
char *nickname_requested;
|
char *nickname_recieved;
|
||||||
char *nickname_recieved;
|
char *type;
|
||||||
char *type;
|
char *description;
|
||||||
char *description;
|
|
||||||
if (!stuff || !stuff->user || !strcmp(stuff->user, "<UNKNOWN>"))
|
if (!strcmp(stuff->user, "<UNKNOWN>"))
|
||||||
{
|
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
/*
|
/*
|
||||||
* XXX This is, of course, a monsterous hack.
|
* XXX This is, of course, a monsterous hack.
|
||||||
*/
|
*/
|
||||||
nickname_requested = next_arg(args, &args);
|
next_arg(args, &args);
|
||||||
type = next_arg(args, &args);
|
type = next_arg(args, &args);
|
||||||
description = next_arg(args, &args);
|
description = next_arg(args, &args);
|
||||||
nickname_recieved = stuff->nick;
|
nickname_recieved = stuff->nick;
|
||||||
|
|
||||||
if (nickname_recieved && *nickname_recieved)
|
if (nickname_recieved && *nickname_recieved)
|
||||||
send_ctcp(CTCP_NOTICE, nickname_recieved, CTCP_DCC,
|
send_ctcp(CTCP_NOTICE, nickname_recieved, CTCP_DCC,
|
||||||
|
|||||||
Reference in New Issue
Block a user