Advertisement
SaNCaK

mIRC Bad Word (Using Socket)

Feb 12th, 2014
497
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.80 KB | None | 0 0
  1. on @*:text:*:#: bw $1-
  2. on @*:action:*:#: bw $1-
  3. on @*:notice:*:#: bw $1-
  4. on *:sockopen:bw*:{
  5.   if (!$sockerr) {
  6.     tokenize 96 $str($chr(96) sockwrite -n $sockname,2)
  7.     $1 GET /list.txt HTTP/1.1
  8.     $2 Host: $+($sock($sockname).addr,$str($crlf,2))
  9.   }
  10. }
  11. alias -l bw {
  12.   var %b = $+(bw,$site,$r(1,9999),$ticks)
  13.   if ($sock(%b)) sockclose $v1
  14.   sockopen %b yoursite.com 80
  15.   set -e %1- $strip($1-) | set -e %1-- kick # $nick No Swearing Please!
  16. }
  17. on *:sockread:bw*:{
  18.   if (!$sockerr) {
  19.     if (!$sock($sockname).mark) {
  20.       var %b | sockread %b
  21.       if (!%b) sockmark $sockname 1 | halt
  22.     }
  23.     while ($sock($sockname).rq > 0) {
  24.       sockread -fn &bw
  25.       if ($regex(%1-,/(^| )\Q $+ $bvar(&bw,1-).text $+ \E\b/)) {
  26.         %1-- | unset %1* | sockclose $sockname
  27.       }
  28.     }
  29.   }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement