alias invitelist {
if (!$1) { echo Correct command:12 /invitelist #channel | halt }
var %file invite-list-Gforce.txt, %lines $lines(%file)
var %i 1, %n 1, %limit 5, %sec 0, %delay 10
while (%i <= %lines) {
%str = %str $+(*!*@,$read(%file,nt,%i))
if (%n == %limit) || (%i == %lines) {
$+(.timer,INVITE,%i,$r(a,z)) 1 %sec mode $1 $+(+,$str(I,%limit)) %str
unset %n %str | inc %sec %delay
}
inc %i | inc %n
}
unset %n %str %sec
}