function event::onChannelText(prefix, channel, text) { if (text.match(/.*(http:\/\/[-_.!~*\'()a-zA-Z0-9;\/?:\@&=+\$,%#]+).*/i)) { var url = RegExp.$1; if (url.length > 0) { var req = new ActiveXObject("Microsoft.XMLHTTP"); if (req) { req.onreadystatechange = function() { if (req.readyState == 4) { var s = req.responseText; if (s.match(/<title>(.+?)<\/title>/i)) { var title = RegExp.$1 send(channel, title); } } } req.open('GET', url, true); req.send(''); } } } }