mIRC Homepage
Posted By: TheFallen Capturing the irc network on invite? - 16/03/03 02:24 PM
Hi all...

How can I capture the originating network on an ON INVITE event? The brief pared-down code below will explain my problem better - it's fine if I'm on only one network, but if I'm on two or more, and the invite comes from the 2ndary network I'm on, then as you'll know, typing /yes joins me to a channel on my primary connection.

on 1:invite:#:{
set %invchan $chan
set %invnick $nick
echo 7 -a *** You were just Invited to $chan by $nick ... Type /yes to accept
}

alias /yes {
/join %invchan
}

Posted By: theRat Re: Capturing the irc network on invite? - 16/03/03 03:06 PM
Code:
on 1:invite:#:{
set %invchan $chan 
set %invnetwork $cid
set %invnick $nick 
echo 7 -a *** You were just Invited to $chan by $nick ... Type /yes to accept
}
alias yes {
scid %invnetwork join %invchan
}
  
© mIRC Discussion Forums