Advertisement
Blizzardo1

Operscan

May 9th, 2013
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.40 KB | None | 0 0
  1. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2. ;;            OPERSNIFF | OPERSCAN Script           ;;
  3. ;;                by Quakenet Scripter              ;;
  4. ;;               Uploaded by Blizzardo1             ;;
  5. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  6.  
  7.  ; This alias performs a special /WHO request, making it easy to catch the result.
  8.  ; The number '123' is used to catch the reply, this can be any number 0-999,
  9.  ; but it must be the same here and in the raw event below.
  10.  alias operscan {
  11.    .who * o%nt,123
  12.  }
  13.  
  14.  ; This raw event catches the special /WHO request made by the alias above.
  15.  raw 354:& 123 &:{
  16.    if ($comchan($3,0)) && ($comchan($me,0)) {
  17.      opercolor $3
  18.    }
  19.    haltdef
  20.  }
  21.  
  22.  ; This local alias sets the color for a given nick on all the common channels.
  23.  alias -l opercolor {
  24.    var %t = $comchan($1,0), %c = 1
  25.    while (%c <= %t) {
  26.      cline -m 9 $comchan($1,%c) $1
  27.      inc %c
  28.    }
  29.  }
  30.  
  31.  ; This raw event catches normal /WHO replies,
  32.  ; probably done by other scripts to update the IAL.
  33.  ; The * in the flags part indicates the user is an IRC Operator.
  34.  raw 352:*:{
  35.   haltdef
  36.    if (* isin $7) && ($comchan($6,0)) && ($comchan($me,0)) {
  37.      opercolor $6
  38.    }
  39.   !aline -hp @Operscan $fulldate 11User Scanned: 00 $+ 12 $+ $6 is 9Oper
  40. }
  41.  
  42. ;END WHO
  43. raw 315:*: {
  44.   haltdef
  45.   !aline -hp @Operscan $fulldate 11END SCAN for 11 $+ $network
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement