now the above snippet will trigger on every line of text that is sid in the channel
to trigger only queries use
on *:text:~*:#channel: {

the script will only ten trigger when ~gossip or ~girl is typed in the channel

to search for other stuff
use

on *:text:~*:#channel: {
var %search1 $replace($gettok($1-,1,32),~,$null)
var %search2 $gettok($1-,2,32)

this make %search1 = Gossip
and %search2 = girl
when ~gossip girl is typed in the channel