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:
@@ -870,7 +870,7 @@ BUILT_IN_COMMAND(dcc_stat_comm)
|
||||
|
||||
void handle_dcc_chat(UserhostItem *stuff, char *nick, char *args)
|
||||
{
|
||||
if (!stuff || !stuff->nick || !nick || !strcmp(stuff->user, "<UNKNOWN>") || !strcmp(stuff->host, "<UNKNOWN>"))
|
||||
if (!stuff || !stuff->nick || !strcmp(stuff->user, "<UNKNOWN>") || !strcmp(stuff->host, "<UNKNOWN>"))
|
||||
{
|
||||
bitchsay("No such nick %s", nick);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user