From 4ee14e00c251c2063834055e5cc8534b71b0b8e6 Mon Sep 17 00:00:00 2001 From: Kevin Easton Date: Thu, 29 Oct 2015 22:17:10 +1100 Subject: [PATCH] Minor cleanup in add_userhost_to_dcc() --- source/dcc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source/dcc.c b/source/dcc.c index 6a0030e..c039ecc 100644 --- a/source/dcc.c +++ b/source/dcc.c @@ -447,14 +447,12 @@ static DCC_List *find_dcc_pending(const char *nick, const char *desc, const char void add_userhost_to_chat(UserhostItem *stuff, char *nick, char *args) { SocketList *Client = NULL; - DCC_int *n = NULL; if (!stuff || !stuff->nick || !stuff->user || !stuff->host || !strcmp(stuff->user, "")) return; if ((Client = find_dcc(nick, "chat", NULL, DCC_CHAT, 0, -1, -1))) - n = (DCC_int *)get_socketinfo(Client->is_read); - if (n) { + DCC_int *n = Client->info; n->userhost = m_sprintf("%s@%s", stuff->user, stuff->host); n->server = from_server; }