Remove useless check for !nick from userhostbase callbacks
The userhostbase callback is always called with non-null nick. Checking for this is just noise which also sometimes results in odd compiler warnings.
This commit is contained in:
@@ -458,9 +458,10 @@ DCC_List *find_dcc_pending(char *nick, char *desc, char *othername, int type, in
|
||||
|
||||
void add_userhost_to_chat(UserhostItem *stuff, char *nick, char *args)
|
||||
{
|
||||
SocketList *Client = NULL;
|
||||
DCC_int *n = NULL;
|
||||
if (!stuff || !nick || !stuff->nick || !stuff->user || !stuff->host || !strcmp(stuff->user, "<UNKNOWN>"))
|
||||
SocketList *Client = NULL;
|
||||
DCC_int *n = NULL;
|
||||
|
||||
if (!stuff || !stuff->nick || !stuff->user || !stuff->host || !strcmp(stuff->user, "<UNKNOWN>"))
|
||||
return;
|
||||
if ((Client = find_dcc(nick, "chat", NULL, DCC_CHAT, 0, -1, -1)))
|
||||
n = (DCC_int *)get_socketinfo(Client->is_read);
|
||||
|
||||
Reference in New Issue
Block a user