alias invitenick {
var %count 1
while ($gettok(%invitelist,%count,%tokchar)) {
invite $ifmatch #yourchannel inc %count
}
}
on *:text:!invite &:?: if ($istok(%invitelist,$2,44)) invite $2 #chan
}
}
on *:text:!add &:?: set %invitelist $addtok(%invitelist,$2,44)

-------------------------------------------------------------------------
So the code will look like that....And when the channel is invite only I can add names to a list and they can type...

/msg (Bot) (name)

and if the name has been added the bot will invite the name into the channel?

To add a name in the channel u can type !add (name) to add a name to the list. Like this.....

!add (name)