Hi - I have a script to send new news headlines from a particular web page to a channel. The headlines are being retrieved ok, but I'm trying to make it so only a new story makes it to the channel. I've made a check variable to see if it's the last story or not, but the problem is it keeps reading down the website and sets an older item...
Any ideas how I can get this to just read the first instance of my match string and not ones further down the webpage?
Thanks!

on 1:sockread:abctest:{
if ($sockerr > 0) return
:nextread
sockread %temp
if ($sockbr == 0) return
if (%temp == $null) %temp = -
if (<div class="black9pt"> isin %temp) {
set %abctest $left($gettok(%temp,3-,62),-36)
if (%abctest.last != %abctest) {
set %abctest.last %abctest {
msg #Channel %abctest
sockclose abctest
}
}
}
}