Invite (on Query/Msg)

By DJ Zacharia on Oct 17, 2007

I have a channel with Invite mode (+i) set. So when a user disconnects or times out/pings out and they need to rejoin the channel, i wrote up this little script to allow them to query/msg me with prompt "!invite" and if their nick is on the nick allow list they will be invited to the channel. It will also announce to the channel the user being invited.

As far as i know, i havent seen a script like this around, if there is one (i sure its better than mine =P ), i am unaware.
Unlike other scripts this one invites via query/msg.

!!Like my other scripts this one is only useful if you have a small number of channel members, and if their nicks remain the same (though you can add their other nicks to the nick list).!!!

REPLACE:

YOURCHAN : #YOUR.CHANNEL'S.NAME

NICK : WITH YOUR CHANNEL USER'S NICK (ALLOWED TO ENTER CHANNEL)
NICK1 : WITH ANOTHER CHANNEL USER'S NICK (ALLOWED TO ENTER CHANNEL)
NICK2 : WITH YOUR CHANNEL USER'S NICK (ALLOWED TO ENTER CHANNEL)

(EXCLUDE ALL WHEN REPLACING REQUIRED VARIABLES)

;;;;;;;;;;;;;;;;;;;
;;Invite on Query;;
;;;;;;;;;;;;;;;;;;;
; I have a channel with Invite mode (+i) set.; 
;So when a user disconnects or times out/pings; 
;out and they need to rejoin the channel, i; 
;wrote up this little script to allow them to; 
;Query/msg me with prompt "!invite" and if their; 
;nick is on the nick allow list they will be; 
;invited to the channel. It will also announce; 
;to the channel the user being invited.;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;REPLACE:;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;#*YOURCHAN* : #YOUR.CHANNEL'S.NAME;
;*NICK* : WITH YOUR CHANNEL USER'S NICK (ALLOWED TO ENTER CHANNEL);
;*NICK1* : WITH ANOTHER CHANNEL USER'S NICK (ALLOWED TO ENTER CHANNEL);
;*NICK2* : WITH YOUR CHANNEL USER'S NICK (ALLOWED TO ENTER CHANNEL); 
;(EXCLUDE ALL * * WHEN REPLACING REQUIRED VARIABLES);
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;Created By DJ Zacharia;;;;;;;;;;;;;;;;;;;
;;;Feel Free to change, just give me;;;;;;;;;;;
;;;;;;;;;;;;;recognition;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;13.10.07;;;;;;;;;;;;;;;;;;;;;;;;

on *:text:!invite *:?:{  
  if ($me isop #*YOURCHAN*) {
    if ($nick == *NICK*) || ($nick == *NICK1*) || ($nick == *NICK2*) {
      invite $nick #*YOURCHAN* 
        msg #*YOURCHAN* 11...::: 4-=3 $nick 4=- Invited Himself Here 11:::... 
        }
      }
    }

Comments

Sign in to comment.
Bull   -  Oct 19, 2007

Are you crazy? 5 closing brackets.. >_>;

 Respond  
guest598594   -  Oct 17, 2007

ah yes, forget about that :)

 Respond  
Olliegod   -  Oct 17, 2007

$chan would not work, seeing as it is a private message.

 Respond  
guest598594   -  Oct 17, 2007

on @*:

/help prefixes

and for the ms #yourchan, u can just put $chan since ur already checkin if its #yourchan

 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.