Another Mass Invite Script

By XTZGZoReX on Jan 19, 2008

Just another mass invite script I wrote.

Command: /massinvite
Version: 1.2
Author: XTZGZoReX

Usage: /massinvite #channel #tochannel
Notes: This one actually got error handlers. I don't think there are much to say here, since its usage is pretty straightforward.

Enjoy!

alias massinvite {
  if ( !$1 ) {
    echo -a * /massinvite: insufficient parameters
    halt
  }
  if ( !$2 ) {
    echo -a * /massinvite: insufficient parameters
    halt
  }
  set %nicks 1
  while ( %nicks <= $nick($1,0) ) {
    invite $nick($1,%nicks) $2
    inc %nicks
  }
  unset %nicks
  halt
}

Comments

Sign in to comment.
guest598594   -  Jan 21, 2008
  if ( !$1 ) {
    echo -a * /massinvite: insufficient parameters
    halt
  }
  if ( !$2 ) {
    echo -a * /massinvite: insufficient parameters
    halt
  }

u only need the first one, cuz if u dont have a $1, ur definitely not gonna have a $2 ;)

also, i\'d use /var %var = data rather than setting and unsetting

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.