I would like to retrieve a list of people in a channel, without having to go in and type /name,

so far i've got

Code:
 
on *:TEXT:!getusers*:#: {
  if ($nick isop #warns_snug) { 
    %chan = $2-
    %nicks = $nick(%chan,0)
    %no = 1
  while ( %nicks > %no ) {
    %nick = $nick(%chan,%no)
    /inc %no 1
    /msg #warns_snug %nick
  }
}
}