Well, one way would be to loop through all open PM windows (all those you want to count) and add all the nicknames to a variable list. So, sake of argument (just for example and TOTALLY UNTESTED):

Code:
ctcp *:whois:*: {
  var %window.nix = $window(0)
  :start
  if (%window.nix == 0) { msg $nick I am talking to %PM.nicks | halt }
  if (($window(%window.nix).type == query) || ($window(%window.nix).type == chat)) { var %PM.nicks = $window(%window.nix) $+ , }
  dec %window.nix | goto start
}


Mind you, people will show you a while loop and offer that as at least one alternative (not to mention making the code a lot better/faster/shorter). Again, this is just a single way it could be done


LOL Atma, beat me to it smile

Last edited by landonsandor; 11/06/04 03:20 AM.

Those who fail history are doomed to repeat it