Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 4th, 2012  |  syntax: None  |  size: 0.44 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. on *:TEXT:!post:#jmyeom: {
  2.   sockopen post alandal.net 80
  3.   set %post.chan $chan
  4. }
  5.  
  6. on *:SOCKOPEN:post: {
  7.   set %y 0
  8.   sockwrite -n $sockname GET /jmyeom/chat.php HTTP/1.1
  9.   sockwrite -n $sockname Host: alandal.net
  10.   sockwrite -n $sockname $crlf
  11. }
  12.  
  13.  
  14. on *:SOCKREAD:post: {
  15.   sockread %read
  16.   if (%read == <chat>) {
  17.     set %y 1
  18.     halt
  19.   }
  20.   if (%read == </chat>) {
  21.     set %y 0
  22.   }
  23.   if (%y == 1) {
  24.     msg %post.chan %read
  25.   }
  26. }