For that, you would need $hfind...

Code:
on *:text:!tellme *:#: {
  if ($hfind(chans,* $+ $2 $+ *,0,w) > 0) {
    var %c = 1
    var %i = $hfind(chans,* $+ $2 $+ *,0,w)
    while (%c <= %i) {
      msg $chan item= $+ $hfind(chans,* $+ $2 $+ *,%c,w) data= $+ $hget(chans,$hfind(chans,* $+ $2 $+ *,%c,w))
      inc %c
    }
  }
  else msg $chan No data on $2 $+ .
}


See if that will work for you.

As you can see, that's almost the same as what you had previously. The main difference is in the msg line.


*EDIT* Fixed error.

Last edited by Riamus2; 29/09/05 02:15 PM.

Invision Support
#Invision on irc.irchighway.net