mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Mar 2003
Posts: 2
T
Bowl of petunias
OP Offline
Bowl of petunias
T
Joined: Mar 2003
Posts: 2
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
}


Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
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
}
  


Code:
//if ( khaled isgod ) echo yes | else echo no

Link Copied to Clipboard