Advertisement
Blizzardo1

OperScan Module

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