Jump to content

Invite Script v1.0


Recommended Posts

; Invite Script v1.0 - by entropy 2020 - updated: 6/19/20
; Change: \"#test\" to the channel you want it to work on
; Then: !i <nickname>
 
; RAWs for /INVITE
raw 443:*:{ if (%x_nick) { .notice %x_nick $2 is already on $3 | halt } }
raw 341:*:{ if (%x_nick) { .notice %x_nick $qt($2) has been invited to $3 | halt } }
raw 401:*:{ if (%x_nick) { .notice %x_nick No such nickname $qt($2) on IRC | halt } }
 
; Events for /INVITE
on *:input:#test:{ if (!i * iswm $1- && $server) { doinvite $2 $me } }
on *:text:!i *:#test:{ doinvite $2 $nick }
 
; Alias
alias -l doinvite {
  if ($me !isop $chan) { .notice $2 I am not a channel operator on $chan }
  else { set -u3 %x_nick $2 | invite $1 $chan }
}

 

Link to post
Share on other sites
 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Premium Theme Designed By IBTheme.com

×
×
  • Create New...