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
}