Advertisement
logicmoo

mirc

Aug 10th, 2017
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Prolog 0.91 KB | None | 0 0
  1. on *:text:*:%favchans1:{    
  2.   {
  3.     aline $iif($chan == $active,-p,-ph) @favchans1 $timestamp $($+(12[,$cnick($chan).color,$chan,12:,$cnick($nick).color,$nick,12]07:,$cnick($chan).color),2) $1-
  4.     if(chan != $active) {
  5.       window -g2 @favchans1
  6.     }
  7.   }
  8. }
  9.  
  10.  
  11. on ^*:text:*:#:{
  12.   if ($cnick($nick).color == $color(normal text)) {
  13.     .cnick $nick $gettok(%colors,$calc(%currentcolor),32)
  14.     if (%currentcolor == $gettok(%colors,0,32)) {
  15.       set %currentcolor 1
  16.     }
  17.     else {
  18.       inc %currentcolor
  19.     }
  20.   }
  21.   if ( # isin $chan ) {
  22.   if ($cnick($chan).color == $color(normal text)) {
  23.  ;; keeps gettign error /cnick: insufficient parameters (line 21, remote.ini)
  24.     .cnick $chan $gettok(%chancolors,$calc(%currentcolorchan),32)
  25.     if (%currentcolorchan == $gettok(%chancolors ,0,32)) {
  26.       set %currentcolorchan 1
  27.     }
  28.     else {
  29.       inc %currentcolorchan
  30.     }
  31.   }
  32.   }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement