Charmander

Untitled

Jun 29th, 2011
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.64 KB | None | 0 0
  1. alias stats {
  2.   sockopen Smo www.smogon.com 80
  3.   set %:o $$1-
  4. }
  5. on *:sockopen:Smo: {
  6.   sockwrite -nt Smo GET /forums/showpost.php?p=3290499&postcount=2 HTTP/1.0
  7.   sockwrite -nt Smo Host: www.smogon.com
  8.   sockwrite -nt Smo $crlf
  9. }
  10. on *:sockread:Smo: {
  11.   var %text
  12.   sockread %text
  13.   if (!$sockbr) return
  14.   if (%found <= 7) {
  15.     if ($+(* $+ %:o $+ *<br />*) iswm %text) {
  16.       echo -a 09[ $+ $time $+ ] <CharScript> $nohtml(%text)
  17.       inc %found
  18.     }
  19.   }
  20.   else {
  21.     socksclose Smo
  22.     unset %:o
  23.   }
  24. }
  25. alias -l nohtml {
  26.   var %x, %i = $regsub($1-,/(^[^<]*>|<[^>]*>|<[^>]*$)/g,$null,%x), %x = $remove(%x,&nbsp;)
  27.   return %x
  28. }
Advertisement
Add Comment
Please, Sign In to add comment