Mass Invite

By #Warizardworks on Mar 04, 2010

This is a simple mass invite snippet.

How it works: It invites everyone from the channel you imput, to the channel you want everyone to be invited to.

How to use it: Place it in remote, and type: /massinvite

That's about all. =]
~ #WarizardWorks

~ This snippet was made by Wariopower and hello2u of #WarizardWorks on irc.purplesurge.net ~
alias massinvite {
  set %chan1 $$?="Channel to invite?" | set %chan2 $$?="New channel?"
  var %i 1
  while ($nick(%chan1,%i)) {
    if ($nick(%chan1,%i) && ($nick(%chan1,%i) != $me) && ($nick !isop %chan1) {
      invite $nick(%chan1,%i) %chan2
    }
    inc %i
  }
  unset %chan2
  unset %chan1
}

Comments

Sign in to comment.
#Warizardworks   -  Apr 13, 2010

@Jaredmf1012: Thanks. :)

@Jethro_: lolol exactly. xD

I'll be updating the snippet to make the code shorter. It's a bit messy in my eyes now.
WP

 Respond  
Jethro   -  Apr 13, 2010

Mass invite is an invitation to be killed.

 Respond  
Jaredmf1012   -  Apr 12, 2010

Just to point out, mass invited is against some rules on networks and can you get banned, but otherwise the script works great, keep it up!

 Respond  
#Warizardworks   -  Mar 05, 2010

@napa182: Very cool! :D

@racoon: Ah, nice idea.

@PunkTuReD: Yeah, good idea. /me adds.
~ WP

 Respond  
PuNkTuReD   -  Mar 05, 2010

should add the option to not invite ops from the first channel

 Respond  
napa182   -  Mar 05, 2010

tested it on a chan with 50 users works fine, but i get what you are saying..

 Respond  
raccoon   -  Mar 04, 2010

This will not work on channels with more than 5-10 users. All public (popular) networks will disconnect you for flooding; either for sending too many commands too quickly, or for sending commands to too many different users too quickly. You require a timer to pull off a mass-invite effectively.

I recommend the use of /sline -r and $snick(#,1), btw.

 Respond  
napa182   -  Mar 04, 2010

well if you still want the popup then you can do

alias massinvite {
  tokenize 32 $$?="Channel to invite?" $$?="New channel?"
  var %x = 1
  while (%x <= $nick($1,0,vr)) {
    if ($nick($1,%x,vr) != $me) invite $v1 $2
    inc %x
  }  
}
 Respond  
#Warizardworks   -  Mar 04, 2010

Ah yeah, true, I just used it so I could have the little dialog box pop up for easy channel imputs haha. :P
~ WP

 Respond  
napa182   -  Mar 04, 2010

why set vars for?

alias  massinvite {
  var %x = 1
  while (%x <= $nick($1,0)) {
    if ($nick($1,%x) != $me) .invite $v1 $2
    inc %x
  }  
}
 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.