Simple Invite

By aeros on Jun 22, 2005

I didn't see any good invite scripts in snippets.. so here is a simple one! Hope you find it useful!

3rD script by ME :D

on *:text:!invite *:#:{
  invite $2- $chan
}

Comments

Sign in to comment.
ReFuSeR   -  Aug 01, 2009

Foolish me, I did not see this script has posted in 2005, lol.

 Respond  
ReFuSeR   -  Aug 01, 2009

I am sorry if I offend you but I cannot possible see how this would be useful.

Also, no need for the "$2-".

You can just use "$2".

I think someone else explained the difference between $2- and $2

 Respond  
dj_boT   -  Jan 08, 2007

DarthReven is there any wrong at this you wrote? Cause i like your idea!

on @:text:!invite :#: { if ($numtok($2-,32) > 1) { var %x $0,%y $strip($2-) | while (%x) { invite $gettok(%y,%x,32) $chan | dec %x } | else { invite $2 $chan } } }

 Respond  
supergeo   -  Jul 12, 2005

I didn\'t see any good invite scripts in snippets.. so here is a simple one! Hope you find it useful! 3rD script by ME :D

You said the above.
To tell you the truth, I STILL don\'t see any good invite snippets.

 Respond  
DeathRyder082   -  Jul 08, 2005

I\'m sorry if this sounds mean, but I don\'t see how this would be usefull.
I mean when using mIRC I have always used /invite .
And Corne wouldn\'t it be best to just make a \"Mass Invite\" which can be found in a
number of snippets? Maybe this is just me.

 Respond  
Corne   -  Jun 23, 2005

I meant to say more than a user at the time like this /invite nick2 nick2 nick3 #channel (without any other stuff). So because he did not specified nothing else besides his code I think I said it right that you cant invite more than a user at the time.

 Respond  
DarthReven   -  Jun 23, 2005

Status you wouldn\'t want to use that cause if the channel isn\'t yours someone could complain about you spaming and corne you can invite more then one person at a time it would just take a loop and 2 variables to do it EX: on @:text:!invite :#: { if ($numtok($2-,32) > 1) { var %x $0,%y $strip($2-) | while (%x) { invite $gettok(%y,%x,32) $chan | dec %x } | else { invite $2 $chan } }

 Respond  
Status_online   -  Jun 23, 2005

how about

on 1:JOIN:#:/msg $nick please join #mywhateverchannel

 Respond  
Corne   -  Jun 23, 2005

You should do a check to see if the bot is opped in that channe like this \"ON @*:TEXT....\" and you also should check if $2 is in the channel or not. (and it should be $2 not $2- because you cant invite more than a user at the time).

 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.