mIRC Home    About    Download    Register    News    Help

Print Thread
#246430 10/06/14 04:00 PM
Joined: Jun 2014
Posts: 8
D
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
D
Joined: Jun 2014
Posts: 8
Hello. I have a socket script that reads and strips HTML from a page. I get tons of echo errors saying "insufficient parameters", for HTML codes that end up have no text. No problem, I don't mind that, but how do I get a script to ignore error messages like that? A while loop? Thanks in advance.

Joined: Apr 2014
Posts: 191
B
Vogon poet
Offline
Vogon poet
B
Joined: Apr 2014
Posts: 191
Do check before echoing.
Code:
var %read
sockread %read
var %text = strips HTML from %read 
if %text { echo -a %text }



Link Copied to Clipboard