Imagine the possibilities:

if $($has_ruby,2) {
  mirc.chan(0).times { |i| 
    mirc[:chans] += " " + mirc.chan(i+1)
  }
}
echo -a %chans

May 21st 2008: Version 1.12 released.
November 9th 2007: Version 1.11 released.
November 1st 2007: Version 1.1 released.
August 28th 2007: Version 1.01 released.

Download v1.12 | License | Documentation

* Ruby4mIRC is only compatible with mIRC 6.3+