Advertisement
Guest User

Untitled

a guest
May 27th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.46 KB | None | 0 0
  1. ; Nickname colouring script by Phil
  2. ; Colours certain nicknames on your nick list
  3. ; Pretty intensive but required if you want IRCOps in another colour
  4. ; if not, use the mIRC address book
  5.  
  6. on 1:START:{
  7.   set %nickcolour.whocounter 0
  8. }
  9.  
  10. alias enableJoinWho {
  11.   enable #dothejoinwho
  12.  
  13.   scon -a chanwho
  14. }
  15.  
  16. alias chanwho {
  17.   set %nickcolour.noofchans $chan(0)
  18.   set %nickcolour.nochanvar 1
  19.   while (%nickcolour.nochanvar <= %nickcolour.noofchans) {
  20.     who $chan(%nickcolour.nochanvar)
  21.     inc %nickcolour.nochanvar
  22.   }
  23. }
  24.  
  25. #dothejoinwho on
  26. alias pausethewhos {
  27.   set %nickcolour.whocounter 0
  28.   .timer 1 60 enableJoinWho
  29.   echo -a 4Whos disabled for 1 min
  30.   disable #dothejoinwho
  31. }
  32.  
  33. alias doWhoForJoin {
  34.   .enable #supressoutput
  35.   who $1
  36.   inc -u20 %nickcolour.whocounter
  37.  
  38.   if (%nickcolour.whocounter > 70) {
  39.     pausethewhos
  40.   }
  41. }
  42.  
  43. on *:JOIN:#:{
  44.   .timerdoWhoForJoin 1 5 doWhoForJoin $chan
  45. }
  46.  
  47. on 1:RAWMODE:#:{
  48.   if (v isin $1 || h isin $1 || o isin $1 || a isin $1 || q isin $1) {
  49.     .enable #supressoutput
  50.     .timerdoWhoForJoin off
  51.     who $chan
  52.     set -u6 %nickcolour.whodone 1
  53.     inc -u20 %nickcolour.whocounter
  54.  
  55.     if (%nickcolour.whocounter > 70) {
  56.       pausethewhos
  57.     }
  58.   }
  59. }
  60. #dothejoinwho end
  61.  
  62. raw 352:*: {
  63.   if ($me ison $2) {
  64.     if ($chr(42) isin $7) && ($left($2,1) == $chr(35)) {
  65.       cline 04 $2 $6
  66.     }
  67.     haltdef
  68.   }
  69. }
  70.  
  71. #supressoutput off
  72. raw 315:*: {
  73.   .disable #supressoutput
  74.   halt
  75. }
  76. #supressoutput
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement