Ichigo69 icon

uptopic script

Ichigo69 | PRO | 01/06/13 07:04:18 PM UTC | 0 ⭐ | 314 👁️ | Never ⏰ | []
mIRC |

520 B

|

None

|

0 👍

/

0 👎

/uptopic {
  var %string = $strip($channel($active).topic)
  if ($stripped != 0) { echo -a [topic] no changes necessary; return }
  var %color = $rand(2,15)
  var %len = $len(%string)
  var %count = 1
  var %out =  $+ %color
  while (%len) {
    if (%color == 16) { %color = 2 }
    if ($mid(%string,%count,1) == $chr(124)) {
      inc %color
      %out = $+(%out,,%color,|)
    }
    else {
      %out = $+(%out,$mid(%string,%count,1),$chr(32))
    }
    inc %count
    dec %len
  }
  /topic $active %out
}

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎