| View previous topic :: View next topic |
| Author |
Message |
BigToe Halfop
Joined: 30 Dec 2010 Posts: 99
|
Posted: Mon Apr 14, 2014 7:16 am Post subject: Invite to a private channel |
|
|
hi, looking for a script that when you publicly type in a channel !invite <nickname>
The script will run the following commands:
1. /msg Q chanlev #channel nickname +aok
2. invite the nickname to #channel via an Invite command
3. /msg nickname Hi nickname, you were invited to join #channel by inviting-nickname.
Thank you in advance |
|
| Back to top |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3741 Location: Mint Factory
|
Posted: Mon Apr 14, 2014 8:22 am Post subject: |
|
|
| Code: |
bind pub o|o !invite chan:invite
proc chan:invite {nick uhosh hand chan text} {
if {[scan $text {%s} member] != 1} {
puthelp "NOTICE $nick :Error, syntax is: !invite <member>"
return
}
puthelp "PRIVMSG Q :chanlev #channel $member +aok"
puthelp "INVITE #channel $member"
puthelp "PRIVMSG $member :Hi $member, you were invited to join #channel by $nick."
}
|
Be sure to change the flags that can use the command to whatever suits your needs and put in the actual channel instead of #channel. _________________ Once the game is over, the king and the pawn go back in the same box. |
|
| Back to top |
|
 |
BigToe Halfop
Joined: 30 Dec 2010 Posts: 99
|
Posted: Mon Apr 14, 2014 8:55 am Post subject: |
|
|
| Thanks, the script works great! |
|
| Back to top |
|
 |
|