tglogo.png
0 LIKES

Snippet


Invite Script v1.0

In Category IRCd Posted by chain On 12/24/20
Tags: n/a

Allows you to invite a nick to your room or any other room.
; 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


Comments 0


Please note that on our website we use cookies necessary for the functioning of our website, cookies that optimize the performance. To learn more about our cookies, how we use them and their benefits, please read our Cookie Policy.
I Understand