gooshie commented on a Page, all channels identifier $chans  -  Sep 29, 2009

For a space deliminated channel list:

alias Chans {
  var %c,%i = 1
  while $chan(%i) {
    %c = %c $v1
    inc %i
  }
  if $isid { return %c }
  else { echo -a %c }
}

For a comma deliminated channel list:

alias Chans {
  var %c,%i = 1
  while $chan(%i) {
    %c = $addtok(%c,$v1,44)
    inc %i
  }
  if $isid { return %c }
  else { echo -a %c }
}
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.