Advertisement
illpastethat

Insult script chromatic

Oct 13th, 2013
508
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.96 KB | None | 0 0
  1. on *:TEXT:!insult*:#: {
  2.   sockopen insulter www.randominsults.net 80
  3.   if ($rand(1,10) == 1) set %insultee $nick
  4.   elseif ($2) set %insultee $2-
  5.   else set %insultee $nick
  6.   set %insulterchan $chan
  7.   writeini insult.ini insults %insultee $calc($readini(insult.ini,insults,%insultee) + $chr(49))
  8.   set %timesinsul $readini(insult.ini,insults,%insultee)
  9. }
  10.  
  11. alias insult
  12.  
  13. on *:sockopen:insulter: {
  14.   sockwrite -n $sockname GET / HTTP/2.0
  15.   sockwrite -n $sockname Host: www.randominsults.net
  16.   sockwrite -n $sockname Connection: close
  17.   sockwrite -n $sockname $crlf
  18. }
  19. on *:sockread:insulter: {
  20.   sockread %insulterpage
  21.   if (<i> isin %insulterpage) {
  22.     set %insulterquote $nohtml(%insulterpage)
  23.   }
  24. }
  25. on *:sockclose:insulter: {
  26.   describe %insulterchan %insultee $chr(5) $+(,%insulterquote,) $+([Times Insulted: %timesinsul,])
  27. }
  28. alias nohtml {
  29.   var %x, %i = $regsub($1-,/(^[^<]*>|<[^>]*>|<[^>]*$)/g,$null,%x), %x = $remove(%x,&nbsp;)
  30.   return %x
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement