On *:Text:!forums:*: {
sockopen forumstitle services.runescape.com 80
set %username $nick
set %chan $chan
}
On *:SockOpen:forumstitle: {
sockwrite -n $sockname GET /m=forum/forums.ws?39,40 HTTP/1.0
sockwrite -n $sockname Host: http://services.runescape.com
sockwrite -n $sockname $crlf
}
On *:SockRead:forumstitle: {
if ($sockerr) { halt }
Else {
var %forums
sockread %forums
if (*a class="sticky2" href="forums.ws* iswm %forums) {
tokenize 62 %forums | set %topictitle $remove($2,created by * iswm %forums) {
tokenize 62 %forums | set %topicuser $remove($3,Combat:
* iswm %combat) {
//echo -a working
tokenize 62 %combat | set %usercombat $remove($5,