Hello,


I'd like to find out if it's possible to have this while loop echo the output on one line instead of 2:

SERVER OUTPUT:

:IrcServer.1 319 Mynickname Buggs2008 :%#EspressoBar

:IrcServer.1 319 Mynickname Buggs2008 :%#test101

Code:
  if ($2 = 319) {
      var %x = $comchan($4,0)
      while (%x) {
        echo $comchan($4,%x)         14› $4 is in Channel(s): $5-
        dec %x 
    }
  }
 

MIRC OUTPUT (Current)

       14› Buggs2008 is in Channel(s): %#EspressoBar
       14› Buggs2008 is in Channel(s): %#test101


I would like to try and get the output one line of echo, I dont know if that possible though because the server is outputing a different channel for each 319 reply


WISHED FOR OUTPUT:

       14› Buggs2008 is in Channel(s): %#EspressoBar,%#test101

My only way of thinking of doing this maybe might be to use a hash table to store the data, then compare it, if there is one channel listed and there is not a second one, then the result is only one channel

On the other hand if there is one channel listed, store it, and if there is another one on a 319 reply, add it some how to the existing piece of data......thoughts?

Cheers

Jay