Advertisement
r1zsa

iRC - Colorize chars

Jan 14th, 2022 (edited)
744
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.02 KB | None | 0 0
  1. ON *:INPUT:#: {
  2.   if (!$inpaste) && (!$ctrlenter) && ($comchar !== $left($1,1)) {
  3.     .msg $chan $1-
  4.  
  5.     echo -t $chan $col_prefix($nick($chan,$me).cmode) $+ 1 $+ $me $+ : $1-
  6.  
  7.     halt
  8.   }
  9. }
  10.  
  11. ON ^*:TEXT:*:#: {
  12.   haltdef
  13.  
  14.   window -g1 $chan
  15.  
  16.   echo -t $chan $col_prefix($nick($chan,$nick).cmode) $+ 1 $+ $nick $+ : $1-
  17. }
  18.  
  19. alias -l col_prefix {
  20.   if (!$1) { return }
  21.  
  22.   if ($1 == ~) { var %c = $rgb( [ $readini($adiircini,n,colors,color_96) ] ).hex | return $+($chr(4),%c,~,$chr(4)) } ; color_96
  23.   if ($1 == &) { var %c = $rgb( [ $readini($adiircini,n,colors,color_95) ] ).hex | return $+($chr(4),%c,&,$chr(4)) } ; color_95
  24.   if ($1 == @) { var %c = $rgb( [ $readini($adiircini,n,colors,color_9) ] ).hex | return $+($chr(4),%c,@,$chr(4)) } ; color_9
  25.   if ($1 == %) { var %c = $rgb( [ $readini($adiircini,n,colors,color_41) ] ).hex | return $+($chr(4),%c,%,$chr(4)) } ; color_41
  26.   if ($1 == +) { var %c = $rgb( [ $readini($adiircini,n,colors,color_12) ] ).hex | return $+($chr(4),%c,+,$chr(4)) } ; color_12
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement