NewzUK Master
Joined: 18 Nov 2002 Posts: 200 Location: Auckland, New Zealand
|
Posted: Sun Feb 12, 2006 8:44 pm Post subject: else problem |
|
|
Hi - I have a script to retrieve a line of data from a webpage. The line is either:
<p>and-the-info-here
or, if there is no info just:
<p>
| Code: |
to send this into the room, the script after the socket stuff is:
if {[string match "*<p>CENTRAL*" $line]} {
regexp {<p>CENTRAL(.*).</p><br>} $line - central
putserv "PRIVMSG $channel :$central"
} else {
putserv "PRIVMSG $channel :No Info Available"
}
}
}
|
however, it is sending both lines to the room even if there is data. I've tried putting returns in after, but then it only does the second line.
Thanks for any help? _________________ #Newsroom - Where News & Markets Connect
http://www.inewsroom.net
#Newsroom on irc.othernet.org |
|