DarthReven is there any wrong at this you wrote? Cause i like your idea!
on @:text:!invite :#: { if ($numtok($2-,32) > 1) { var %x $0,%y $strip($2-) | while (%x) { invite $gettok(%y,%x,32) $chan | dec %x } | else { invite $2 $chan } } }