look into $cid /cid and $active
I've not done much with multi-server's but you could try this:
on *:TEXT:$+(*,$me,*):#:{
if (($active != $chan) && ($activecid !== $chan.cid)) {
echo $color(mode text) -a $timestamp * Your nick ( $+ $me $+ ) has been metioned by $nick on $chan ( $+ $network $+ )
halt
}
if ($active != $chan) {
echo $color(mode text) -a $timestamp * Your nick ( $+ $me $+ ) has been metioned by $nick on $chan
halt
}
}
As I said, I've not tried it, so I don't know if it works!
Good luck!