Problem with that idea is that if you have multiple groups with the same servers in them, then that won't return what connection you are currently using, it will only return the first group that matches.

The idea that I am aiming for is where you could find out the group name that was used to connect (presuming that there was one used).

So if I have 2 connections to irc.chat.com
But one is named "ChatHuman" and the other is "ChatBot" then even though both are to the same server, $groupname (as an example) would tell you which group (either ChatHuman or ChatBot) was used to connect to it. For cases where there is only one connection to any one server at a time, then the $server().group idea works fine, but for multiple connections to the same server but using multiple groups for the same servers, that idea doesn't work.