dbUtils: pass player_control to findAddIn()
Allow calling findAddIn() without a client object.
This commit is contained in:
@@ -956,7 +956,7 @@ handle_findadd(struct client *client, int argc, char *argv[])
|
||||
return COMMAND_RETURN_ERROR;
|
||||
}
|
||||
|
||||
ret = findAddIn(client, NULL, list);
|
||||
ret = findAddIn(client->player_control, NULL, list);
|
||||
if (ret == -1)
|
||||
command_error(client, ACK_ERROR_NO_EXIST,
|
||||
"directory or file not found");
|
||||
|
||||
Reference in New Issue
Block a user