one two word four 11:35 by
on *:TEXT:*:#:{
set %last $5
if ((word isin $3) && (by isin $6) && (%last isin $5)) msg $chan one two word four five by <--- works fine till here
if (by isin $6) msg $chan
http://www.internet.com/first $+ %last | halt } <--- this is the line i'm having problem
it's supposed to grab the time 11:35 or whatever the time of the news is.
but if something else is posted in the channel for example: one two three one two three
is grabbing "two" not the time
i understand that checking %last is the wrong option here, it needs some kind of code to evaluate the "if" first, but im a newbie and i really don't know how to write the rest of the code