I've tried looking through google.tcl, and I must confess, it's a little too complicated for me..
However I've found another script that was far more simple, but not nearly as advanced, and therefore more difficult to get to do what I want..
Code: Select all
set radio_url "http://213.114.155.110:8000/7.html"
bind pub - !users users_get
proc users_get {nick mask hand chan args} {
global radio_url
set file [open "|lynx -source $radio_url" r]
set html "[gets $file]"
regsub "<HTML><meta http-equiv=\"Pragma\" content=\"no-cache\"></head>" $html "" html
regsub "<body>" $html "\002 Listeners: \002" html
putchan $chan $html
}
And the script returns:<HTML><meta http-equiv="Pragma" content="no-cache"></head><body>4,1,8,80,4,128,Fpu - Racer Car (Voidcom)</body></html>
My question is... Can regsub be used in such a way, that it ignores all text from the first comma and forward.. So it returns this:Listeners: 4,1,8,80,4,128,Fpu - Racer Car (Voidcom)</body></html>
Help!Listeners: 4
