Project

General

Profile

RE: [Script] Full-Pallette Random Nick Color Script 1.2 » Full-Pallette Random Nick Color Script fork v0.1.6.ini

Mr. BS, 05/14/2016 01:13 PM

 
1
; https://dev.adiirc.com/boards/5/topics/308
2

    
3
; Hackjob full-palette Random Nick Color script for AdiIRC
4
; Generate consistent but random, full-palette colors for nicks & set custom colors as you please
5
;
6
; Version 1.2 - Fork v0.1.6 by Pereba
7
;
8
;
9
; *Now allows storage of custom colors!
10
;		Usage: /setCustomColor <Nick> <Hex Color Code> - Example: /setCustomColor JohnDoe F854A7
11
;				/delCustomColor <Nick> - Example: /delCustomColor JohnDoe
12
;
13
; *Colors are now calculated once and stored as needed for both random and custom colors
14
;	This decreases CPU time (especially on bouncer playback) for each line displayed
15
; 	Custom colors persist between sessions (stored as rcolorscustom in your AdiIRC folder)
16
;
17
; *Buffer playback from bouncers is now properly supported without mangling output
18
;
19
; **NOTE: The built-in "Use Random Nick Colors" (Options -> Nick Colors) must be disabled for this script to work 
20
; **NOTE: Any nick colors set in the AdiIRC options menu override random or custom colors set by this script
21
;
22
; Thanks to pereba for the original inspiration script and kr0n for troubleshooting help, as well as 
23
; introducing me to hashtables :)
24
;
25
; For any of the output strings, if you don't want to show usermodes, you can replace $nick($chan, $nick).pnick
26
;  with just plain $nick
27
;
28
; If you're curious, $chr(61442) is a special AdiIRC character that interprets the following string as a hex 
29
; color code and allows for colorizing text
30
;
31
; If the script is acting weird for you, consider updating to the latest release or beta of AdiIRC; 
32
; some of this code relies on features or bufixes in later versions
33
;
34
; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
35
;
36
; This is the initialization section, it handles actions to take when the script is loaded for 
37
; the first time or reloaded, 
38
;
39
;
40
; whenever the script is loaded for the first time or reloaded, call /savereload, 
41
; which saves the rcolors and rcolorscustom hashtables to disk, clears them from memory, 
42
; then reloads them--this also handles reloading them from disk when AdiIRC first starts
43
;
44
on *:LOAD:savereload
45
on *:START:{
46
  hadd -m rcolors 0bgcolor $color(34)
47
  savereload
48
}
49
;
50
; save & overwrite the rcolors & rcolorscustom hashtables to disk on exit
51
;
52
on *:Exit:{
53
hsave -o rcolors rcolors
54
hsave -o rcolorscustom rcolorscustom
55
}
56
; dump all cached colors when the options screen is loaded; this ensures no stale colors are used
57
; if the background color is changed, since they might not be easy enough to see
58
on *:OPTIONS:{
59
  if ($hget(rcolors,0bgcolor) != $color(34)) {
60
    reset
61
  }
62
  if ($readini($adiircini,n,NickColors,NickColorsEntireLine) == True) {
63
    set -e %rcolors_ColorEntireLine True
64
  }
65
  else {
66
    unset %rcolors_ColorEntireLine
67
  }
68
}
69

    
70
;
71
; This section responds to normal in-channel text events
72
;
73
on &^*:TEXT:*:#:{
74
;
75
; Stop here if user turned off script
76
;
77
if (%rcolors_disabled) return
78
;
79
; Disable script on blacklisted networks/channels
80
;
81
if ($network $+ . $+ # isin %rcolors_blacklist) return
82
;
83
; Check if message is ZNC buffer playback and use values accordingly
84
; ZNC buffer playback has different message content than a normal message and needs different handling
85
;
86
  var %time $spacefix($asctime($iif($msgstamp, $v1, $ctime), $timestampfmt))
87
  var %pnick $iif($nick(#,$nick).cnick, $v1, $nick)
88
  ;;$nick($chan, $nick).pnick
89
; build the echo string
90
  ;;;echo -vrlmbfw2 # %time $replace($replace($prefixuser, $chr(32), $chr(160)), $ $+ pnick, $+($chr(61442), $getcolor, %pnick, $chr(3)))  $1-
91
  
92
  var %linecolor $chr(3) $+ $chr(61442) $+ $getcolor
93
  var %prefixuser $replace($prefixuser,$!pnick,%pnick,$chr(32),$chr(160))
94
  var %msg $msgx
95
  ; check if message triggered a highlight to use respective color in echo
96
  var %h $highlight($iif($1- !isnum,$v1))
97

    
98
  ; Color entire prefixuser or just the nick? follow user preference:
99
  if (%rcolors_ColorEntirePrefixUser) {
100
    var %prefixuser %linecolor $+ $replace($prefixuser,$!pnick,%pnick,$chr(32),$chr(160)) $+ $chr(3)
101
  }
102
  else {
103
    var %prefixuser $replace($prefixuser,$!pnick,%linecolor $+ %pnick $+ $chr(3),$!nick,%linecolor $+ %pnick $+ $chr(3),$chr(32),$chr(160))
104
  }
105

    
106
  ; If Options -> Nick Colors -> Color entire line is enabled:
107
  if (%rcolors_ColorEntireLine && !%h) {
108
    %prefixuser = %prefixuser $+ %linecolor
109
    %msg = $regsubex(%msg,$patLine,%linecolor)
110
    if (%rcolors_ColorTimestamp) { %time = %linecolor $+ $regsubex(%time,$patLine,%linecolor) $+ $chr(3) }
111
  }
112
    
113
  %msg = %time %prefixuser %msg
114
  echox -vrlmbfw2 # %msg
115
  halt
116
}
117
;
118
; This section handles ACTIONs, like /me or /emote commands
119
; Mostly the same as PRIVMSG but with the output string adjusted to properly display these types of messages
120
;
121
on &^*:ACTION:*:#:{
122
  ;
123
  ; Stop here if user turned off script
124
  ;
125
  if (%rcolors_disabled) return
126
  var %time $spacefix($asctime($iif($msgstamp, $v1, $ctime), $timestampfmt))
127
  var %pnick $iif($nick(#,$nick).cnick, $v1, $nick)
128
  var %linecolor $chr(3) $+ $chr(61442) $+ $getcolor
129
  var %msg $msgx
130
  ; check if message triggered a highlight to use respective color in echo
131
  var %h $highlight($iif($1- !isnum,$v1))
132
  
133
  ; Color just the nick or entire prefixuser? follow user preference:
134
  var %prefixbase $replace($prefixemote,$!pnick,%linecolor $+ %pnick $+ $chr(3),$!nick,%linecolor $+ %pnick $+ $chr(3),$chr(32),$chr(160)), %prefixuser %prefixbase
135
  if (%rcolors_ColorEntirePrefixUser) {
136
    %prefixuser = %linecolor $+ $replace($prefixemote,$!pnick,%pnick,$chr(32),$chr(160)) $+ $chr(3)
137

    
138
    ; Color only pnick if Color Entire Line is diabled for emotes
139
    if (!%rcolors_ColorEntireLine || !%rcolors_ColorEmote) {
140
      %prefixuser = %prefixbase
141
    }
142
  }
143

    
144
  ; If Options -> Nick Colors -> Color entire line is enabled:
145
  if (%rcolors_ColorEntireLine && !%h) {
146
    %prefixuser = %prefixuser $+ %linecolor
147
    %msg = $regsubex(%msg,$patLine,%linecolor)
148
    if (%rcolors_ColorTimestamp) { %time = %linecolor $+ $regsubex(%time,$patLine,%linecolor) $+ $chr(3) }
149
  }
150
  
151
  var %msgx %time %prefixuser $+ $iif(!%rcolors_ColorEmote,$chr(3)) %msg
152
 
153
  ;build the echo string
154
  echox -vrlmbfw2c action # %msgx
155
  halt 
156
}
157

    
158
;
159
; User own text
160
;
161
on *:INPUT:#: {
162
  ;
163
  ; Stop here if user turned off script
164
  ;
165
  if (%rcolors_disabled) return
166
  
167
  if (($left($1,1) != /) || ($ctrlenter) || ($regex($1,/^(\/{1,4})(me|action)/i)) && ($status == connected) {
168
    var %time $spacefix($asctime($iif($msgstamp, $v1, $ctime), $timestampfmt))
169
    var %pnick $iif($nick(#,$nick).cnick, $v1, $nick)
170
    var %linecolor $chr(3) $+ $chr(61442) $+ $getcolor
171
    var %msgxraw $replacex($iif($regml(1), $iif($len($regml(1)) > 1,$($mid($msgx,$calc($len($1) +2)),2),$mid($msgx,$calc($len($1) +2))), $msgx),$chr(9),$chr(160))
172
    var %msg %msgxraw
173
    ;var %rcolors_ColorEmote 1
174
    
175
    ; Color just the nick or entire prefixuser? follow user preference:
176
    var %prefixbase $replace($iif($regml(2),$prefixemote,$prefixuser),$!pnick,%linecolor $+ %pnick $+ $chr(3),$!nick,%linecolor $+ %pnick $+ $chr(3),$chr(32),$chr(160)), %prefixuser %prefixbase
177
    if (%rcolors_ColorEntirePrefixUser) {
178
      %prefixuser = %linecolor $+ $replace($iif($regml(2),$prefixemote,$prefixuser),$!pnick,%pnick,$chr(32),$chr(160)) $+ $chr(3)
179
      
180
      ; Color only pnick if Color Entire Line is diabled for emotes
181
      if (($regml(2)) && (!%rcolors_ColorEntireLine || !%rcolors_ColorEmote)) {
182
        %prefixuser = %prefixbase
183
      }
184
    }
185

    
186
    ; If Options -> Nick Colors -> Color entire line is enabled: (except /action msg)
187
    if (%rcolors_ColorEntireLine) {
188
      if ($regml(2) && !%rcolors_ColorEmote) {
189
      }
190
      else {
191
        %prefixuser = $iif(%rcolors_ColorEmote,%linecolor) $+ %prefixuser $+ %linecolor
192
        %msg = $regsubex(new,%msgxraw,$patLine,%linecolor)
193
        if (%rcolors_ColorTimestamp) { %time = %linecolor $+ $regsubex(%time,$patLine,%linecolor) $+ $chr(3) }
194
      }
195
    }
196

    
197
    ; Action VS regular message
198
    if ($regml(2)) {
199
      var %msgx %time %prefixuser $+ $iif(!%rcolors_ColorEmote,$chr(3)) %msg, %text PRIVMSG $active : $+ $chr(1) $+ ACTION %msgxraw $+ $chr(1)
200
      echox -vw2c action # %msgx
201
    }
202
    else {
203
      var %msgx %time %prefixuser %msg, %text PRIVMSG $active : $+ %msgxraw
204
      echox -vw2c own # %msgx
205
    }
206
    .rawx %text
207
    halt
208
  }
209
}
210

    
211
;
212
; Coloring nicklist
213
;
214
on me:*:join:#:{
215
  ; If enabled continue
216
  if (%rcolors_nicklist) {
217
    .timer 1 3 clinergb #
218
  }
219
}
220

    
221
on *:JOIN:#:{
222
  ; If enabled continue
223
  if (%rcolors_nicklist) {
224
    cline -b $rgb( [ $hex2rgb($iif(%rcolors_nicklistbg == 1, $getDarkColor($nick), $getBrightColor($nick))) ] ) $nick
225
  }
226
}
227
; credits @ http://forums.mirc.com/ubbthreads.php/topics/153480/HEX_=%3E_RGB?
228
alias hex2rgb {
229
  $iif($isid,return,echo -a) $+($base($left($1,2),16,10),$chr(44),$base($mid($1,3,2),16,10),$chr(44),$base($right($1,2),16,10))
230
}
231

    
232
alias -l clinergb {
233
  if ($istok(%rcolors_blacklist,$network $+ . $+ $1,32)) {
234
    var %rcolors_disabled 1
235
  }
236
  var %n $nick($1,0)
237
  while (%n) {
238
    cline $iif(%rcolors_nicklist && %rcolors_disabled != 1,-b $rgb( [ $hex2rgb($iif(%rcolors_nicklistbg == 1, $getDarkColor($nick($1,%n)), $getBrightColor($nick($1,%n)))) ] ), -r) $1 $nick($1,%n)
239
    dec %n
240
  }
241
}
242

    
243
alias -l resetNicklist {
244
  tokenize 32 $regsubex($str(x,$chan(0)),/x/g,\n $chr(32))
245
  clinergb $chan($*)
246
}
247

    
248
; credits Kin @ GeekShed
249
alias -l patLine return /\co|(\cc(?!\d(?:\d(?:,\d\d?)?)?))/gu
250

    
251
alias -l spacefix {
252
  return $replacex($1,$chr(32),$chr(160))
253
}
254

    
255
alias -l getcolor {
256
; Initialize %color as neutral grey in case we end up with nothing else to return
257
  var %color = 888888
258
; Check if nick has a custom color set in AdiIRC options; if it does, return that color
259
  if ($nick(#, $nick).color > 1) {
260
    var %color = $getHexOfColor($nick(#, $nick).color))
261
    return %color
262
}
263
; Check if nick has a script-custom color; if it does, return that color
264
  else if ($hget(rcolorscustom, $nick)) {
265
    var %color = $hget(rcolorscustom, $nick)
266
    return %color
267
    }
268
; Check if nick has a cached color, if it does, return that color
269
  else if ($hget(rcolors, $nick)) {
270
    var %color = $hget(rcolors, $nick)
271
    return %color
272
  }
273
; If no cached or custom colors are found, roll for a new color and add it to the cache
274
  else {
275
    var %color $iif(%rcolors_bg == 1, $getDarkColor, $getBrightColor)
276
    hadd -m rcolors $nick %color
277
    return %color
278
  }
279
; If something fails, return %color as originally set to 888888
280
  return %color
281
}
282

    
283
;
284
;
285
;
286
; This is the alias for generating bright colors
287
;
288
alias -l getBrightColor {
289
;
290
; Generate a unique seed number by calculating the MD5 hash of a nick, interpreting the last 8 characters as a hex number, then converting that to decimal
291
;
292
  ;;;var %nickSeedNum = $base($right($md5($nick),8),16,10)
293
  var %nickSeedNum = $base($right($md5($iif($1,$1,$nick)),8),16,10)
294
;
295
; Multiply by a high prime number, then take the modulus of a prime number < 255 to get 3 values for R,G,B color; this induces a bit more variety in the colors, and
296
; for whatever reason (I'm not a mathematician) tends to "favor" returning numbers close to 255 (brighter colors)
297
;
298
  var %dec1 = $calc((%nickSeedNum * 7793) % 251)
299
  var %dec2 = $calc((%nickSeedNum * 5153)  % 241)
300
  var %dec3 = $calc((%nickSeedNum * 3623) % 239)
301
;
302
; Take the average of the RGB values 
303
;
304
  var %decaverage = $calc((%dec1 + %dec2 + %dec3)/3)
305
;
306
; Generate colors until you get one that is "bright" (average RGB value > 128)
307
; If you find these colors are too dark or bright, you can adjust the %decaverage <= 128
308
;
309
  while (%decaverage <= 128) {
310
    var %dec1 = $calc((%dec1 * 7793) % 251)
311
    var %dec2 = $calc((%dec2 * 5153) % 241)
312
    var %dec3 = $calc((%dec3 * 3623) % 239)
313
    var %decaverage = $calc((%dec1 + %dec2 + %dec3)/3)
314
  }
315
;
316
; call $RGBToHex to turn the RGB Value into a hex color code and return that code
317
;
318
  var %brightColorReturn = $RGBToHex(%dec1,%dec2,%dec3)
319
  return %brightColorReturn
320
}
321
;
322
; This is the alias for generating dark colors
323
; It's the same as $getBrightColor but looks for colors that are "dark", or have
324
; average RGB value < 128 - Again you can tweak the %decaverage <= 128 if they're too dark or bright
325
;
326
alias -l getDarkColor {
327
  ;var %nickSeedNum = $base($right($md5($nick),8),16,10)
328
  var %nickSeedNum = $base($right($md5($iif($1,$1,$nick)),8),16,10)
329
  var %dec1 = $calc((%nickSeedNum * 7793) % 113)
330
  var %dec2 = $calc((%nickSeedNum * 5153) % 127)
331
  var %dec3 = $calc((%nickSeedNum * 3623) % 131)
332
  var %decaverage = $calc((%dec1 + %dec2 + %dec3)/3)
333

    
334
  while (%decaverage >= 128) {
335
    var %dec1 = $calc((%dec1 * 7793) % 113)
336
    var %dec2 = $calc((%dec2 * 5153) % 127)
337
    var %dec3 = $calc((%dec3 * 3623) % 131)
338
    var %decaverage = $calc((%dec1 + %dec2 + %dec3)/3)
339
  }
340
  var %darkColorReturn = $RGBToHex(%dec1,%dec2,%dec3)
341
  return %darkColorReturn
342
}
343
;
344
; This is the alias for converting RGB values to Hex, used here for getting hex strings to put 
345
; after $chr(61442) - see top if you're not sure what this character is
346
;
347
; it takes in 3 numbers from 0-255, converts them to hex numbers, 
348
; then returns them as a single string, EG $RGBToHex(255,255,255) or "White" returns FFFFFF
349
;
350
alias -l RGBToHex {
351
  var %RtoHex = $base($1,10,16,2)
352
  var %GtoHex = $base($2,10,16,2)
353
  var %BtoHex = $base($3,10,16,2)
354
  var %HexCodeReturn = %RToHex $+ %GToHex $+ %BToHex
355
  return %HexCodeReturn
356
}
357
;
358
; This is the alias for determining if your background is bright
359
;
360
; Average RGB of 100 seems to work well for determining if background is light or dark,
361
; but if you find the script is using colors that aren't showing well you might want to 
362
; adjust this
363
;
364
alias -l isBackgroundBright {
365
;
366
; get the backgound color
367
;
368
  var %bgRGB = $rgb($iif($1,$color(27),$color(34)))
369
;
370
; strip out the commas and replace them with the + sign
371
;
372
  var %bgRGB = $replace(%bgRGB,$chr(44),$chr(43))
373
;
374
; evaluate the string from above
375
;
376
  var %bgRGBAverage = $calc((%bgRGB)/3)
377
;
378
; check if the average RGB value of the background is > 100; 
379
; return 1 if it is (bright) or 0 if it isn't (dark)
380
;
381
  if (%bgRGBAverage >= 100) { 
382
    return 1
383
  }
384
  else return 0
385
}
386

    
387
;
388
; This is the alias that gets the hex value of numbered config colors 
389
; https://dev.adiirc.com/projects/adiirc/wiki/Extra_Colors
390
;
391
; It is used in this script only to keep nicks with custom colors set using 
392
; those colors instead of picking random colors
393
;
394
alias -l getHexOfColor {
395
;
396
; get the specified color's R,G,B value
397
  var %colorToGet = $rgb($color($1))
398
;
399
; tokenize the string returned above with commas ($chr(44)) as delimiter; pass those values into the $RGBToHex alias and return the value
400
  tokenize 44 %colorToGet
401
  return $RGBToHex($1,$2,$3)
402
}
403
;
404
; This is the alias for setting custom nick colors, it takes a Nick and a hex color code as arguments
405
; EXAMPLE /setCustomColor JohnDoe f854a7
406
;
407
alias setCustomColor {
408
; typing just /setcustomcolor returns rudimentary help
409
; otherwise write the nick+color to hash table rcolorscustom and save to disk
410
   $iif($1, /echo -at $+($chr(61442),$2) Set this color for nick $1, /echo -at Usage: /setCustomColor <Nick> <Hex Color Code> Example: /setCustomColor JohnDoe F854A7)
411
   
412
   hadd -m rcolorscustom $1 $2
413
   hsave -o rcolorscustom rcolorscustom
414
}
415
;
416
; This is the alias for deleting custom nick colors, it takes only a nick as an argument
417
; EXAMPLE /delCustomColor JohnDoe
418
alias delCustomColor {
419
; typing just /delcustomcolor returns rudimentary help
420
; otherwise remove nick+color from hash table rcolorscustom and save to disk
421
   $iif($1, echo -at Trying to remove custom color for $1, /echo -at Usage: /delCustomColor  <Nick> Example: /delCustomColor JohnDoe)
422
   hdel rcolorscustom $1
423
   hsave -o rcolorscustom rcolorscustom
424
}
425
;
426
; This is the alias for clearing all cached random colors
427
; It empties the rcolors hashtable, then saves the empty table back to the disk
428
; It is generally used in this script for ensuring that colors adjust accordingly to background color changes
429
;
430
alias -l reset {
431
; Remove all cached colors
432
  if ($hget(rcolors)) {
433
    .hdel -w rcolors *
434
	savereload
435
  }  
436
; Check if background is light or dark and set %rcolors_bg accordingly
437
  ;;;set %rcolors_bg $isBackgroundBright
438
  set %rcolors_bg $iif($var(%rcolors_forcestyle,1).value != $null,$v1,$isBackgroundBright)
439
  rcolors_resetnicklist
440
}
441
alias -l rcolors_resetnicklist {
442
  set %rcolors_nicklistbg $iif($var(%rcolors_nickliststyle,1).value != $null,$v1,$isBackgroundBright(nicklist))
443
}
444
;
445
; This is the alias for saving & reloading cached & custom colors to disk. It is primarily used on first run, or when
446
; settings are changed and need to be stored
447
; 
448

    
449
alias savereload {
450
; check if the rcolors hashtable exists, if it does, save it to disk, purge all entries from memory and reload it.
451
; it also checks if the hashtable is too large (more than 1000 entries) and purges it if that's the case
452
; if the hashtable is purged, colors will be recalculated and entered the next time a person speaks
453
	if ($hget(rcolors)) {
454
		if ($hget(rcolors,0).item > 1000) {
455
			.hdel -w rcolors *
456
		}
457
		hsave -o rcolors rcolors
458
		.hdel -w rcolors *
459
		hload rcolors rcolors
460
	}
461
    else { 
462
		hmake rcolors 100
463
	}
464
; same as above, but with rcolorscustom
465
; rcolorscustom will also never be auto-cleared  
466
   if ($hget(rcolorscustom)) {
467
	hsave -o rcolorscustom rcolorscustom
468
	.hdel -w rcolorscustom *
469
	hload rcolorscustom rcolorscustom
470
	}
471
            else { 
472
            hmake rcolorscustom 100
473
            }
474
                      
475
}
476

    
477
menu channel {
478
  RGB Random Nick Colors
479
  .Disable in #
480
  ..$iif($network $+ . $+ # isin %rcolors_blacklist,$style(1)) Yes:set %rcolors_blacklist $addtok(%rcolors_blacklist,$network $+ . $+ #,32) | clinergb #
481
  ..$iif($network $+ . $+ # !isin %rcolors_blacklist,$style(1)) No:set %rcolors_blacklist $deltok(%rcolors_blacklist,1,$network $+ . $+ #) | clinergb #
482
}
483

    
484
menu menubar {
485
  RGB Random Nick Colors
486
  .$iif(!%rcolors_disabled,$style(1)) Enabled:$iif(%rcolors_disabled,unset %rcolors_disabled,set %rcolors_disabled 1) | $iif(%rcolors_nicklist,scid -a resetNicklist)
487
  .-
488
  .Color messages style
489
  ..$iif(%rcolors_forcestyle == $null,$style(1)) Auto:unset %rcolors_forcestyle | reset
490
  ..$iif(%rcolors_forcestyle == 0,$style(1)) Bright:set %rcolors_forcestyle 0 | reset
491
  ..$iif(%rcolors_forcestyle == 1,$style(1)) Dark:set %rcolors_forcestyle 1 | reset
492
  .Color entire prefix user
493
  ..$iif(%rcolors_ColorEntirePrefixUser,$style(1)) Yes:set %rcolors_ColorEntirePrefixUser True
494
  ..$iif(%rcolors_ColorEntirePrefixUser != True,$style(1)) No:unset %rcolors_ColorEntirePrefixUser
495
  .Color entire message
496
  ..$iif(%rcolors_ColorEntireLine,$style(1)) Yes:.setconfig NickColors NickColorsEntireLine True | set %rcolors_ColorEntireLine True
497
  ..$iif(%rcolors_ColorEntireLine != True,$style(1)) No:.setconfig NickColors NickColorsEntireLine False | unset %rcolors_ColorEntireLine False
498
  .└ Including emote message
499
  ..$iif(%rcolors_ColorEmote,$style(1)) Yes:set %rcolors_ColorEmote True
500
  ..$iif(%rcolors_ColorEmote != True,$style(1)) No:unset %rcolors_ColorEmote
501
  .└ Including timestamp
502
  ..$iif(%rcolors_ColorTimestamp,$style(1)) Yes:set %rcolors_ColorTimestamp True
503
  ..$iif(%rcolors_ColorTimestamp != True,$style(1)) No:unset %rcolors_ColorTimestamp
504
  .-
505
  .$iif(%rcolors_nicklist,$style(1)) Enable nicklist colors:$iif(%rcolors_nicklist,unset %rcolors_nicklist,set %rcolors_nicklist True) | scid -a resetNicklist
506
  .Color nicklist style
507
  ..$iif(%rcolors_nickliststyle == $null,$style(1)) Auto:unset %rcolors_nickliststyle | rcolors_resetnicklist | scid -a resetNicklist
508
  ..$iif(%rcolors_nickliststyle == 0,$style(1)) Bright:set %rcolors_nickliststyle 0 | rcolors_resetnicklist | scid -a resetNicklist
509
  ..$iif(%rcolors_nickliststyle == 1,$style(1)) Dark:set %rcolors_nickliststyle 1 | rcolors_resetnicklist | scid -a resetNicklist
510
}
(7-7/10)