Code:
/invite %nickname #channel


Of course you have to save the nickname to a variable when someone requests an invite.

Is also a little insecure, since if 2 people request an invite close behind each other, a mod could think he's inviting the first one, but then he happens to invite the second one.


Learning something new every day.