If that's all it has (and the channel name is the item name), you can just do:

Code:
on *:text:!tellme *:#: {
  if ($hget(chans,$2) != $null) {
    msg $chan item= $+ $2 data= $+ $hget(chans,$2)
  }
  else msg $chan No data on $2 $+ .
}


No need to even use $hfind since you can pull the item name directly because you are typing the full channel name.

Again, this assumes you have it set like you said... item=#channel, data=nicks. To have added it this way, you'd have used something like /hadd chans $chan nick

If, on the other hand, your channel ISN'T the item and you used a number for your items and the channel is just the first part of the data, we'd need to do something else. If that's the case, just let us know.

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

Invision Support
#Invision on irc.irchighway.net