Ok, trying to keep it simple:
Let's say that I have, in my server list, the following two enteries:
/server -a irc.chat.com -g Group111 -d Group 111
/server -a irc.chat.com -g Group222 -d Group 222
(Trust me, what you see is intentional)
If I make 2 connections, one to Group111, the other to Group222, then how can I find out the name of the group I chose to connect to?
$network is unreliable, as it can be changed by the irc server... can do a server search because that will only return the enteries, not limit it to what you are connected on at the time.
My thought is that if another identifier was made, such as $nid (for Network ID) or $NetworkID, and it reports what server-group was used to make the current connection, it could open up usability in scripts that make multiple connections to the same network, but use the group id to determine their functions. ($cid doesn't cut it, as the numbers are not necessarily going to be the same each time).