rem: return added;
add: return i;
context: BOOL opn_search_reply_add(char *file, OpnUrl *url, Share *share){	OpnSearch *search;	List *l;	BOOL match[2], added = FALSE;	assert(file);	assert(url);	assert(share);	for (l = OPENNAP->searches; l; l = l->next) {		search = (OpnSearch *) l->data;		match[0] = file_cmp_query(file, search->query);		match[1] = file_cmp_query(file, search->exclude);				if (match[0] && !match[1]) {			OPN->search_result(OPN, search->event,			                   url->user, NULL, opn_url_serialize(url),			                   1, share);			added = TRUE;			timer_reset(search->timer);		}	}	return added;}