I dont controll the bot that searches for when the files where uploaded, but the code I was using was, as follows

on *:TEXT:*:#ORIGCHAN: {
if ($1 == !search) { msg #SEARCHCHAN !search $2-
halt
}